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 Apr 9, 2012@turt2live
its very annoying, everytime the server restarts i have to kill it and start up again, can you push a fix some time soon?
-
View User Profile
-
Send Message
Posted Apr 9, 2012@deleted_7536780
You have a lot of players I'm guessing. If yes, that's why (working on a fix), otherwise you have a bunch of useless data (also working on a fix).
@deleted_7536780
Means while saving, something happened.
-
View User Profile
-
Send Message
Posted Apr 9, 2012also getting
19:43:52 [SEVERE] Exception in thread "Thread-18450"
19:43:52 [SEVERE] java.util.ConcurrentModificationException
19:43:52 [SEVERE] at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
19:43:52 [SEVERE] at java.util.HashMap$KeyIterator.next(Unknown Source)
19:43:52 [SEVERE] at com.turt2live.antishare.storage.MetadataHack.save(Unknown Source)
19:43:52 [SEVERE] at com.turt2live.antishare.storage.VirtualPerWorldStorage.saveToDisk(Unknown Source)
19:43:52 [SEVERE] at com.turt2live.antishare.storage.VirtualPerWorldStorage.reload(Unknown Source)
19:43:52 [SEVERE] at com.turt2live.antishare.storage.VirtualStorage.reload(Unknown Source)
19:43:52 [SEVERE] at com.turt2live.antishare.storage.VirtualStorage$1.run(Unknown Source)
19:43:52 [SEVERE] at java.lang.Thread.run(Unknown Source)
-
View User Profile
-
Send Message
Posted Apr 9, 2012When my server restarts its hangs on this for AGES... why?
18:32:47 [INFO] [AntiShare] Disabling AntiShare v3.1.3
18:32:47 [INFO] [AntiShare] Saving virtual storage to disk/SQL
-
View User Profile
-
Send Message
Posted Apr 8, 2012@deleted_7536780
You can't really avoid Minecraft being derpy, but to stop AntiShare from doing inventories you (for now) have to force it to have a conflict (MultiInv) or find some workaround in the configuration (I can't find one as of yet)
-
View User Profile
-
Send Message
Posted Apr 8, 2012@turt2live
I don't want it to handle inventories. So how can i prevent these errors?
-
View User Profile
-
Send Message
Posted Apr 8, 2012@kozzy68
AntiShare completely avoids the issue of Minecraft having different data as it has saved if your server is running to par.
AntiShare requests the inventory directly from the player, rather than the server's save, so if the server's save goes downhill, AntiShare is still working, but if AntiShare goes downhill first (which would only happen if the JVM were to run out of memory), both Minecraft and AntiShare are still equal, just with corrupt data.
-
View User Profile
-
Send Message
Posted Apr 8, 2012@turt2live ok got your point. At worst thing is that MC inv and map is saved in diffrent times than other plugin saves data so crash can leave us with inconsistent data like when we sell our diamods to shop and after the crash we get money as they are saved but we get also diamonds as inventory was not saved yet :D. I dont have this problems luckily my server had no crash for months. It would be no such problems if all would be saved at same time so we lose same amonut of data for each plugin at crash. But you cant do any thing about that I know.
-
View User Profile
-
Send Message
Posted Apr 8, 2012@kozzy68
Inventories, due to performance on larger servers, are saved within AntiShare whenever someone makes a change, but they are NOT saved to disk/sql until you see the 4 line console message saying so.
There is no real "safe" way to do inventories in Bukkit, or even vanilla as they follow the same thing: If you didn't do a /save-all or setup periodic saving, if the server were to crash: Inventories (and not to mention a bunch of other things like player locations) are lost.
Even in programming itself, and every other inventory manager plugin (for the lower spectrum), there is no "safe" way to handle this issue without risking further hardware failure or hardware strain.
I've done the absolute best I can to make inventories save when they should, and have to, but because of this it causes bugs later on in the plugin (which is why I don't think I'm ever going to be able to release AntiShare as a "full" version).
To answer in short: If you don't trust your server will stay alive that long, set the periodic time to something faster. It is safe as long as your server is safe.
-
View User Profile
-
Send Message
Posted Apr 8, 2012@turt2live
I have edidted my post but you were too fast to reply. I think you can also drag diamond from creative and make /gm and keep it so saving is needed after all. but pls see my original coment once more. Also can we disable item pickups for creative players ?
-
View User Profile
-
Send Message
Posted Apr 8, 2012@kozzy68
There should be no saving as the files are only created when they need to be, so if no inventories are saved, no files are created.
The inventories is to stop cross-world and cross-gamemode contamination, otherwise there is nothing stopping you from dragging a full inventory of diamonds from a server's creative world to the main world so you can build a house. There is also nothing stopping you from doing that in the same world, pop into creative, grab a bunch of diamonds, pop back to survival.
That is why I implemented inventories.
-
View User Profile
-
Send Message
Posted Apr 8, 2012hi, Can we raly on server inventory saving /swaping ? I can imagine it as source of nasty problems with lost or duped items durring server crashes. I gues thats that 30 minutes interval. if you mine some diamonds switch mode and server crashes before this 30 minutes will you get them back ? Or is it written smart way and each player inv is saved at each change mode event instead of every xx mins ? :)
-
View User Profile
-
Send Message
Posted Apr 8, 2012@deleted_7536780
AntiShare won't handle inventories. AntiShare will run fine otherwise.
That's literally it.
-
View User Profile
-
Send Message
Posted Apr 8, 2012What the hell does all of this mean?! - http://dev.bukkit.org/paste/5060/
-
View User Profile
-
Send Message
Posted Apr 7, 2012@kozzy68
I'll look into it, thanks for the suggestion.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@turt2live
thanks for re. I think Iv managed to run it but not sure if its 100% like I whant but with this ton of options overiding each other no chance to test it all. I think yours doc is quite ok. My suggestion is to make cleanup in features and settings itself. Making region and gm command more independed of rest of the things. State plugin was in 3 months ago is good point to get inspiration. Features added are nice but they are added not so good way that is making it whole harder than it needs to be. And would be nice to make it work better with essentials by having option to use and respect essentials perms and commands to do /gm stuff and open inv. ... 2012-04-07 20:57:18 [SEVERE] [AntiShare] [3.1.3] [CONFLICT] Other Conflict: Essentials 2012-04-07 20:57:18 [SEVERE] [AntiShare] [3.1.3] [CONFLICT] AntiShare won't do anything, but there may be problems because of the conflict
Thanks
-
View User Profile
-
Send Message
Posted Apr 7, 2012@rasnyderiii
AntiShare periodically saves (by default: every 30 minutes). I'll see what I can do about regions running away though.
@kozzy68
I know the config is long, stupidly long in fact. I'm working as hard as I can to provide documentation as well as a smaller configuration (mostly getting rid of the nasty header, but as well the insane amount of nodes). If you have any trouble, please PM me, I can walk you through how it works, what will happen, and I'm even willing to configure it myself to meet your needs.
-
View User Profile
-
Send Message
Posted Apr 7, 2012@rasnyderiii
Hi, well I just had to do this for admins: - AntiShare.admin - AntiShare.gamemode.others
and it worked. Its small bug.
Ye plugin is nice but to hard to use its called scope creep in project management what we see here. :D plus I dont like idea that we have now 3 perm nodes for single comand it just make whole config dirty. bukkit essentials and antyshare /gm command perm.
-
View User Profile
-
Send Message
Posted Apr 7, 2012I have this working with essentials without a problem. My guess is a few permissions are missing for you. I know Turt could help you better than I - but message me and I would certainly offer my help. This plugin has been an amazing addition to my server.
-
View User Profile
-
Send Message
Posted Apr 7, 2012ouch ... now after hour of study and testing of doc. I have first version config ready and another 100 questions of things Im not sure how would work. This is too much configuring it would kill this plugin. . I would like it more if it was more like version 3 months back.
... does not work even. AntiShare.gamemode.others is not included in .admin perm. and it seems to conflict with essentials I cant change mode of other players. I can grant even '*' perm to admin no use.
such a waste. I dont argue that I do someting wrong but this is just to damn complex to for such small task it does. lot of features added are part of essetials. opening inventory or /gm. You should just stick to basic function preventing creative mode players doing certain things.