AntiShare
AntiShare
DISCONTINUED
This plugin is no longer maintained. Support is no longer provided and updates will not be issued. If you would like to take over the project, please contact me.
Thanks to Team Haven (HAVENmc.com) for the logo!
What it does
The original idea came from here from the server legendaryisland.com. It blocks certain actions if a player (by default) is in creative mode. AntiShare also supports many other features like regions, inventory switching, and more.
Features Supported
- Multiple World Support - A configuration for each world
- GameMode Regions - Want your PvP arena to be survival? Use GameMode Regions!
- GameMode Inventories - An inventory for creative, one for survival, and even one for adventure
- GameMode Blocks - Don't let survival players break blocks placed by creative players!
- And much, much more - Take a look at the configuration! There are options for nearly every creative restriction option (including changing player levels and economy balances on Game Mode change)
For advanced help, please see this page.
Source?
Check out AntiShare's GitHub repository for the source!
Download
Make a backup before you update!!
- BukkitDev: Click Here
Bugs
Think you have a bug? Report it here.
DO NOT REPORT BUGS BELOW. POST THEM ON THE ABOVE PROVIDED LINK
Bugs reported below WILL be ignored
Information regarding the next update
The next update of AntiShare will be a major change. Changes currently include the following. Check back often as this list will be adjusted:
- Complete reworking of inner functionality. This will help with the insane amount of resources AntiShare uses
- New permissions and commands.
- New configuration (with auto-convert)
- Smaller footprint on the hard drive (with auto-convert)
- More compatibility with other plugins
- Removal of fully integrated survival support. This means that although supported by the plugin, it is strongly recommended to use an alternate plugin to deal with protecting your servers from survival mode players. AntiShare is going to be designed with creative players being the bad guys and only prevent survival players from using creative stuff.
- Removal of fully independent regions. As this can be done with WorldGuard, AntiShare will no longer support it
- Continued limited support of World Splits
- Addition of a grouping system to assist with servers that may have donor ranks
- Modified support of inventories. This has yet to be fully designed, but the inventory system within AntiShare is going to be adjusted to permit more configuration as well as compatibility.
- Added support for potential future platforms. (note: this description is about to get nerdy) AntiShare is going to be following a common API abstraction to allow for more platforms to be supported by the same file. Although there are no active plans to support anything more than Bukkit, the potential for more platforms is being considered while rewriting the plugin. Although this system will increase the file size of the plugin, I do not foresee it affecting performance in a negative way.
- Complete rewrite of AntiShare. Yup, that's right. I'm going to be re-writing the plugin from scratch to clean up the code and give me more control over it. It's been quite a while since I've last updated the code, and it's becoming hard to fix issues with, both are sure signs that a rewrite is needed.
I would like to thank the current, and future, users of AntiShare - I hope it is serving you well. I hope you all understand the need for the rewrite and will continue to use AntiShare on your server(s).
If you have suggestions, comments, or questions, please contact me through any of the various way presented.

-
View User Profile
-
Send Message
Posted Mar 31, 2012issue today...
http://pastebin.com/giwZU6yp
This happened after I made /as region creative area
-
View User Profile
-
Send Message
Posted Mar 31, 2012hi since a put antishare on my serveur a got maaanyyyyyyyy error, my log file is 28mo after 24h running i probably missed up something in the config but i have no idea how to config it well. I have a creative zone on my serveur for player, me and few members are op and gamemode on all the time.
the /gm command doesnt work for my modos and it look like permissionsex doesn't work with AS since i can put any nodes nothing work except for ops
even if i'm op i can't use egg, spawn mobs or animals even with true in the config file. it's not possible anymore to make baby animals.
<<code>>2012-03-31 23:53:57 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:57 [SEVERE] com.turt2live.antishare.debug.BugException: Failed to make SURVIVAL equal to CREATIVE 2012-03-31 23:53:57 [SEVERE] at com.turt2live.antishare.debug.BugCheck.verifyEqual(Unknown Source) 2012-03-31 23:53:57 [SEVERE] at com.turt2live.antishare.regions.RegionHandler.checkRegion(Unknown Source) 2012-03-31 23:53:57 [SEVERE] at com.turt2live.antishare.listener.PlayerListener.onPlayerMove(Unknown Source) 2012-03-31 23:53:57 [SEVERE] at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) 2012-03-31 23:53:57 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2012-03-31 23:53:57 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source) 2012-03-31 23:53:57 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) 2012-03-31 23:53:57 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 2012-03-31 23:53:57 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:461) 2012-03-31 23:53:57 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:209) 2012-03-31 23:53:57 [SEVERE] at net.minecraft.server.Packet10Flying.handle(SourceFile:126) 2012-03-31 23:53:57 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 2012-03-31 23:53:57 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) 2012-03-31 23:53:57 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) 2012-03-31 23:53:57 [SEVERE] at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:85) 2012-03-31 23:53:57 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:625) 2012-03-31 23:53:57 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:509) 2012-03-31 23:53:57 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 2012-03-31 23:53:57 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:57 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:57 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:57 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:57 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:57 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:57 [SEVERE] java.lang.NullPointerException 2012-03-31 23:53:57 [SEVERE] at com.turt2live.antishare.Notification.sendNotification(Unknown Source) 2012-03-31 23:53:57 [SEVERE] at com.turt2live.antishare.Notification.sendNotification(Unknown Source) 2012-03-31 23:53:57 [SEVERE] at com.turt2live.antishare.regions.RegionScanner$1.run(Unknown Source) 2012-03-31 23:53:57 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) 2012-03-31 23:53:57 [SEVERE] at java.lang.Thread.run(Unknown Source) 2012-03-31 23:53:57 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:57 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:57 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:57 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [SEVERE] com.turt2live.antishare.debug.BugException: Failed to make SURVIVAL equal to CREATIVE 2012-03-31 23:53:58 [SEVERE] at com.turt2live.antishare.debug.BugCheck.verifyEqual(Unknown Source) 2012-03-31 23:53:58 [SEVERE] at com.turt2live.antishare.regions.RegionHandler.checkRegion(Unknown Source) 2012-03-31 23:53:58 [SEVERE] at com.turt2live.antishare.listener.PlayerListener.onPlayerMove(Unknown Source) 2012-03-31 23:53:58 [SEVERE] at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) 2012-03-31 23:53:58 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2012-03-31 23:53:58 [SEVERE] at java.lang.reflect.Method.invoke(Unknown Source) 2012-03-31 23:53:58 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) 2012-03-31 23:53:58 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 2012-03-31 23:53:58 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:461) 2012-03-31 23:53:58 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:209) 2012-03-31 23:53:58 [SEVERE] at net.minecraft.server.Packet10Flying.handle(SourceFile:126) 2012-03-31 23:53:58 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 2012-03-31 23:53:58 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) 2012-03-31 23:53:58 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) 2012-03-31 23:53:58 [SEVERE] at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:85) 2012-03-31 23:53:58 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:625) 2012-03-31 23:53:58 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:509) 2012-03-31 23:53:58 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled. 2012-03-31 23:53:58 [SEVERE] java.lang.NullPointerException 2012-03-31 23:53:58 [SEVERE] at com.turt2live.antishare.Notification.sendNotification(Unknown Source) 2012-03-31 23:53:58 [SEVERE] at com.turt2live.antishare.Notification.sendNotification(Unknown Source) 2012-03-31 23:53:58 [SEVERE] at com.turt2live.antishare.regions.RegionScanner$1.run(Unknown Source) 2012-03-31 23:53:58 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) 2012-03-31 23:53:58 [SEVERE] at java.lang.Thread.run(Unknown Source) 2012-03-31 23:53:58 [WARNING] [AntiShare] An error has occured. 2012-03-31 23:53:58 [WARNING] [AntiShare] Error Overflow. Output cancelled.<</code>>
here's my config file
<<code>>events: block_break: none block_place: none death: none drop_item: none interact: none commands: /somecommand,/anothercommand messages: block_break: You cannot do that! block_place: You cannot do that! death: You cannot do that! drop_item: You cannot do that! interact: You cannot do that! eggs: You cannot use eggs! exp_bottle: You cannot use experience bottles! inventory_swap: Your inventory has been changed. creativeModeBlock: You cannot break that block! It was placed by a creative mode player. survivalModeBlock: You cannot break that block! It was placed by a survival mode player. bedrock: You cannot play with bedrock! pvp: You cannot hit other players! mobpvp: You cannot hit mobs! noBlockDrop: You will not get anything from breaking that! illegalCommand: You cannot use that command! worldSwap: You cannot transfer to that world! bucket: You cannot use buckets! flint: You cannot use fire! tnt: You cannot use TNT! fire_charge: You cannot use the Fire Charge! hazards: allow_eggs: true allow_exp_bottle: true allow_bedrock: true allow_buckets: true allow_fire_charge: true allow_flint: true allow_tnt: true tnt_explosions: true region_items: true other: only_if_creative: false inventory_swap: true track_blocks: false pvp: false pvp-mobs: true blockDrops: true worldTransfer: false worlds-ignore-survival: true tracked-blocks-creative: none tracked-blocks-survival: none SQL: use: false host: localhost username: AntiShare password: AntiSharePW database: AntiShare settings: save-interval: 30 send-use-info: true debug-override: false ignore-conflict-warning: false notifications: send: true console: true illegal: block_place: true block_break: true death: true drop_item: true interact: true command: true egg: true exp_bottle: true creative_block_break: true survival_block_break: true pvp: true mob-pvp: true bedrock_attempt: true world_transfer: true fire_charge: true fire: true bucket: true tnt-place: true region_item: true legal: block_place: false block_break: false death: false drop_item: false interact: false command: false egg: false exp_bottle: false creative_block_break: false survival_block_break: false pvp: false mob-pvp: false bedrock_attempt: false world_transfer: false fire_charge: false fire: false bucket: false tnt-place: false region_item: false general: gamemode_change: false region_enter: false region_exit: false tnt_creative_explosion: false<</code>>
-
View User Profile
-
Send Message
Posted Mar 31, 2012Found a minor bug - has no effect on performance, but it is a bit confusing for players.
Whenever a player places a block, and then tries to break the block they placed, AntiShare tells them they will receive no drop if the block is broken - however, as should happen, they do receive a drop.
'blockDrops' and 'creative_only' are both set to true. Like I said, this doesn't effect gameplay, it's just a notification bug.
-
View User Profile
-
Send Message
Posted Mar 30, 2012@ImKingofTHeHill9123
This is already implemented.
(quoting myself from earlier)
As well, there is the feature of survival players not getting drops, it's a bit difficult to setup but here it goes: Under "other" make sure that "track_blocks" is true, then set "blockDrops" to true. This will warn the player that they won't get anything but still allow them to break it, of course with no drops.
-
View User Profile
-
Send Message
Posted Mar 30, 2012hey i use this on my server, but i realized that this can be abused easily. Can you make it so that creative blocks can be destroyed but they don't drop anything. Because creative players can still block places and if they lose creative they can no longer break the blocks they placed.
-
View User Profile
-
Send Message
Posted Mar 30, 2012@rasnyderiii
There is the potential for bugs but you can get around the restriction by creating the AntiShare region first then the WorldGuard region overtop. Once I make AntiShare more cooperative with other plugins the restriction will be lifted.
-
View User Profile
-
Send Message
Posted Mar 30, 2012Vanish no packet - stops all items from being picked up, might check that source.
Curious - I have dungeons with chests at the end (worldguard protected of course) it is "not" possible to set a worldguard region "and" an antishare region survival only correct? I tried but it said already a region.
Would love to force people into survival so my creative players could not just run to the end safely - but still have the worldguard protection of the area.
-
View User Profile
-
Send Message
Posted Mar 30, 2012@Hayden06
I can see about adding the x/z split feature, it would end up in the next release though.
By default blocks the creative players break don't drop anything, this is vanilla behaviour, if you have a plugin that does this then change the configuration value in AntiShare of "events.block_break" to *.
As well, there is the feature of survival players not getting drops, it's a bit difficult to setup but here it goes: Under "other" make sure that "track_blocks" is true, then set "blockDrops" to true. This will warn the player that they won't get anything but still allow them to break it, of course with no drops.
As for random item pickup, I'll get to work on that :)
-
View User Profile
-
Send Message
Posted Mar 30, 2012could you add a feature that prevents players in creative mode from crossing a specific x or z coordinate value (instead of a box area), and prevent creative mode all together on one side so that I can split my map in half between creative players and survival players. I wouldn't need any limiting factors on Survival mode since they can go/build anywhere. And Creative players could simply switch into survival mode to go to the survival side..
I have players who want to build in creative, and play in survival (so they switch their own gamemode) but I want that crazy creative stuff to one side and keep a truly survival side for survival-only players.
also, should make it so creative players build and break blocks, but any blocks they break don't give drops, the blocks they place don't give drops when a survival player or tnt breaks them, and creative players simply can't pick up any drops at all, not from blocks or from mobs or from a random items on the ground.
-
View User Profile
-
Send Message
Posted Mar 30, 2012AntiShare - v3.1.3
You can download 3.1.3 here (not working? Click here)
-
View User Profile
-
Send Message
Posted Mar 29, 2012@turt2live
Thank You! Really appreciate the work you put into this plugin!
-
View User Profile
-
Send Message
Posted Mar 29, 2012AntiShare - v3.1.2
This is not a required update, it just fixes a minor bug regarding chat.
Download Here. (This download comes from my Jenkins, so check the filename before restarting your server)
-
View User Profile
-
Send Message
Posted Mar 29, 2012@rasnyderiii
Thank you :)
Let me know if it can be improved in any way.
-
View User Profile
-
Send Message
Posted Mar 29, 2012Donated - Thank you for your work and a great plugin!
-
View User Profile
-
Send Message
Posted Mar 29, 2012Version 3.1.1
Download it here: Version 3.1.1
-
View User Profile
-
Send Message
Posted Mar 29, 2012@rasnyderiii
@DigitalGeek
Fixed the startup bug, see the files tab :) (Version 3.1.1)
@rasnyderiii
There is, BukkitDev just has it in a bad spot.
Scroll to the top and look below your "username bar" (the thing that says "welcome" and "pms"), there is a donate button.
-
View User Profile
-
Send Message
Posted Mar 29, 2012Thanks Turt - btw, could you add a paypal donation link ;)
-
View User Profile
-
Send Message
Posted Mar 29, 2012@rasnyderiii
@DigitalGeek
This is now a confirmed bug, I'm working on a fix.
(sigh) And I thought I tested everything :/
-
View User Profile
-
Send Message
Posted Mar 29, 2012Wow, I hate myself for not finding this plugin sooner. Thank You, You saved me and my ops a lot of time.
EDIT: Getting the Same error as rasnyderiii, and it was on first boot with plugin. Using v 3.1.0 on craftbukkit RB 1.2.4 R1 .
-
View User Profile
-
Send Message
Posted Mar 29, 2012@rasnyderiii
Probably just a bad config, or I failed at code.
I'll look into it and push 3.1.1 if needed