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 17, 2012I found a way that donators can cheat :/ Could you maybe add a way to stop the block drops from TNT when a creative player puts the TNT down? Because otherwise, they can spawn a bunch of diamondblocks then blow them up for players.
-
View User Profile
-
Send Message
Posted Mar 16, 2012When i switch worlds AntiShare throws a bunch of errors (could not pass event) then tells me to report to turt2live because the inventory change took to long. Is multi world supported?
-
View User Profile
-
Send Message
Posted Mar 14, 2012@l4pierce
From the looks of it, any one (or combination) could be an issue:
-
View User Profile
-
Send Message
Posted Mar 14, 2012Pastebin that please... its too difficult to read it here
-
View User Profile
-
Send Message
Posted Mar 14, 2012Im getting this error (console is in reverse order, sorry)
http://pastebin.com/q7GYCPax
Im also getting this when people switch worlds
20:56:31 [SEVERE] [AntiShare v3.0.0] ERROR: World transfer inventory change took longer than 5 seconds! 20:56:31 [SEVERE] [AntiShare v3.0.0] Please report this to turt2live! http://mc.turt2live.com/plugins/bug.php?simple&plugin=AntiShare
-
View User Profile
-
Send Message
Posted Mar 13, 2012@ad35226
This feature is already somewhat added, I'll do some testing to see how bad the functionality is though.
As for the dev builds, I do forewarn that there are some developer commands present (quick and easy commands for me)
-
View User Profile
-
Send Message
Posted Mar 13, 2012Yo turt! Just a little suggestion, I saw this other plugin called "Limited Creative" Which essentially does the same things as your plugin, but less. There is this one feature I thought would be very useful especially in my server, or any other server that has sign based shops/economy. It has a feature called " prevent usage of interactive signs (to stop economy in creative)"
Do you think that is possible with this plugin ? Or is it already? Lol Just wondering i just thought it would be nice to have that feature.
Also I'm using one of your dev builds from Jenkins and it's actually working really well :D
-
View User Profile
-
Send Message
Posted Mar 13, 2012@DonDav1
Already fixed :3
Use the interact field in the configuration to block buckets :)
-
View User Profile
-
Send Message
Posted Mar 13, 2012Hi, i get this error many times in craftbukkit 1.2.3-R0.1 and 1.2.3-R0-2:
2012-03-13 12:24:19 [SEVERE] Could not pass event EntityDamageByEntityEvent to AntiShare org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441) at net.minecraft.server.Explosion.a(Explosion.java:152) at net.minecraft.server.World.createExplosion(World.java:1530) at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:225) at net.minecraft.server.EntityFireball.a(EntityFireball.java:210) at net.minecraft.server.EntityFireball.G_(EntityFireball.java:139) at net.minecraft.server.World.entityJoinedWorld(World.java:1260) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:106) at net.minecraft.server.World.playerJoinedWorld(World.java:1242) at net.minecraft.server.World.tickEntities(World.java:1149) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:545) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftItem cannot be cast to org.bukkit.entity.Player at com.turt2live.antishare.ASListener.onEntityDamage(Unknown Source) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 14 more
Just want to report, for fixing in 3.1.0...
Another Question, is there any way to block the use of lavabuckets and waterbuckets in creative mode?
Anyway nice plugin, i love it.
-
View User Profile
-
Send Message
Posted Mar 12, 2012@l4pierce
Glad you like the plugin :)
Let me know if it can be any better :D
-
View User Profile
-
Send Message
Posted Mar 12, 2012You sir, are god.. this is an absolutely ESSENTIAL part of my server now. I have donators that get creative mode, but some of them have been sharing items with survival players (not allowed) so i installed this, and it was instantly fixed with confused Donators :D. Thanks a bunch! I might donate to you later :D :D :D :D
-
View User Profile
-
Send Message
Posted Mar 11, 2012@ad35226
Bugs would be bad...
Of course I'll do my best to torture AntiShare before calling it a release :P
-
View User Profile
-
Send Message
Posted Mar 11, 2012@turt2live
Ok thanks so much for your prompt response!
Dont worry if you cant get it out today, no rush. Take your time to make it as bug free as you can !
-
View User Profile
-
Send Message
Posted Mar 11, 2012@ad35226
Both are fixed in 3.1.0 (Not yet released).
3.1.0 has no release date other than before (or when) the CraftBukkit 1.2.3 RB is released.
Although, if I can, I will get 3.1.0 out today.
-
View User Profile
-
Send Message
Posted Mar 11, 2012Hey turt saw some error again today Lol: http://pastie.org/3574056
And also sometimes I get some error like, inventory switch took longer than 5 seconds please report this error to turt2live Here is that error: http://pastie.org/3574076
-
View User Profile
-
Send Message
Posted Mar 9, 2012@retricide
It's alright :)
Glad you like the plugin :D
-
View User Profile
-
Send Message
Posted Mar 9, 2012@turt2live
My bad - realized it was an error on my behalf. Deleted my comment before refreshing the page too >.>
My apologies! Keep up the fantastic work!
-
View User Profile
-
Send Message
Posted Mar 9, 2012@retricide
It's been reported to be 90% working in the Beta, I'm not going to fix it for the developer builds (or the beta) because these builds are likely to have their own problems.
Issues reported include:
If you want to use 3.0.0 with anything not R5/6/7 then you do it at your own risk, and I will likely not be able to provide decent support (as all the errors are seemingly random and cannot be replicated easily).
@Hvarr
I designed it to be an exact copy of the configuration. "Only if creative" is a mode, not an event.
"Only if creative" (if true) means that the blocked actions ONLY apply when the player is in creative, otherwise (false) the blocked actions happen regardless of Game Mode.
Version 3.1.0 will have an extensive built-in "help", this "help" will provide assistance with setting up your configuration (in fact, you can even save it from the game), explains permissions and the configuration, and can tell you what your server allows, and does not allow, with the current configuration.
-
View User Profile
-
Send Message
Posted Mar 9, 2012AntiShare.onlyIfCreative - Overrides the global setting (there is an AntiShare.onlyIfCreative.global node, this is true to use the config.yml value)
I understand, that this node overrides, definition, if permissions should work, or not, but should it be AntiShare.onlyIfCreative.allow or AntiShare.allow.onlyIfCreative ?? Please, post all possible nodes, we can have and explanations to them. I don't get this one at all. Could someone, please, explain this to me? Thank you, guys!
-
View User Profile
-
Send Message
Posted Mar 4, 2012@Bones6966
Then you have to edit the configuration...
I put a very descriptive section in the configuration for that reason, customization.