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 Aug 8, 2012@mattia08
Naughty you for not using online mode :P
I noticed it myself while playing with TNT, I'll be fixing that >.>
-
View User Profile
-
Send Message
Posted Aug 8, 2012Unfortunately there are problems... Edit: I've this error when i try to place a block in air Error:
22:26:24 [GRAVE] Could not pass event PlayerInteractEvent to AntiShare
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:147)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:619)
at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:94)
at net.minecraft.server.Packet15Place.handle(SourceFile:58)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:281)
at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109)
at net.minecraft.server.ServerConnection.b(SourceFile:35)
at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Caused by: java.lang.NullPointerException
at com.turt2live.antishare.ASListener.onInteract(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330)
... 17 more
AS DEBUG --> Pastebin
Now all the potions work width id, but they are blocked using potion and thrown potion. Thank you! :D
-
View User Profile
-
Send Message
Posted Aug 8, 2012@rasnyderiii
@mattia08
Fixed in the latest development build.
Turns out Bukkit pre-cancels any air interaction, so AntiShare was skipping a bunch of code because it thought the event was not important
-
View User Profile
-
Send Message
Posted Aug 8, 2012@mattia08
I'll see what I can do (as I've been doing), but at the moment it's not a HUGE problem. The worst that will happen is that a player will have a potion effect on them for a duration (usually about a minute), even after a Game Mode change. As for splash potions, it's blocked as expected (as mentioned), it just looks like the plugin fails.
-
View User Profile
-
Send Message
Posted Aug 8, 2012@turt2live
But CreativeControl can block all the potions, if it's a Bukkit limitation why it works correctly? Sorry but i don't understand this point...
I can't update my server until i fixed this problem :S Thank you for help! :)
-
View User Profile
-
Send Message
Posted Aug 8, 2012@turt2live
Turt is correct - I have tested this thoroughly now. The one odd thing.. In survival - while trying to drink a potion - and having pointer in reach of a clickable block - gives odd results - being blocked sometimes by AS.
But not a big deal.
-
View User Profile
-
Send Message
Posted Aug 7, 2012@mattia08
Edible potions: Not currently (Bukkit limitation). Thrown/Splash potions: Only if they hit something (but if they don't hit anything it still has the effect of not doing anything)
-
View User Profile
-
Send Message
Posted Aug 7, 2012There is currently no way to permanently block the potions? I tried CreativeControl, it blocks them but it has big problems with the inventory (login / logout) and I would not change plugin anyway...
Good job anyway!
-
View User Profile
-
Send Message
Posted Aug 7, 2012@rasnyderiii
Thank you :)
I'm glad my plugin is supplying help to servers, and that I have only 1 angry email from a player claiming I'm ruining servers :P
-
View User Profile
-
Send Message
Posted Aug 7, 2012@turt2live
Another Donation for your Hardwork!
If you use anti-share as I do - and it has protected your server - with amazing results - I encourage you to show your support for the hard work involved here for all of us!
Team Haven
-
View User Profile
-
Send Message
Posted Aug 7, 2012AntiShare 4.0.0 Re-upload
Uploaded the wrong version the first time.
Don't be alarmed if you do a version check on AntiShare and see 4.1.0-DEV, this is because I re-uploaded a development version (yes, it works just the same. All I added was a better error reporting system to the plugin).
-
View User Profile
-
Send Message
Posted Aug 7, 2012@mattia08
>.> I uploaded the wrong version. BRB while I hate myself.Fixed
-
View User Profile
-
Send Message
Posted Aug 7, 2012@turt2live
It's up to date :)
my md5sum 84e2658545f3706942c6d3c404e5e32f
-
View User Profile
-
Send Message
Posted Aug 7, 2012@mattia08
Then you need to update
-
View User Profile
-
Send Message
Posted Aug 7, 2012@turt2live
Hi, i've downloaded your plugin from here but at the start it still output
>23:00:12 [AVVERTENZA] [AntiShare] AntiShare 4.0.0 is out! You are running AntiShare 3.9.0-DEV 23:00:12 [AVVERTENZA] [AntiShare] Update AntiShare at: http://dev.bukkit.org/server-mods/antishare
-
View User Profile
-
Send Message
Posted Aug 7, 2012@rasnyderiii
CB 2320 doesn't exist O_o
In console, type "as debug", and pastebin the debug file please?
-
View User Profile
-
Send Message
Posted Aug 7, 2012@turt2live
Amazing work as always!
As for potions,
- CB 2320 - they work and hurt a player - example harm potions at player - kill them.
-
View User Profile
-
Send Message
Posted Aug 7, 2012AntiShare 4.0.0
Get it now from BukkitDev (mirror)Change Log
-
View User Profile
-
Send Message
Posted Aug 6, 2012@rasnyderiii
O_o I can't replicate this. Video of sorts? (Might be a CB limitation)
As for potions, they appear to work under some conditions (and do work under others):
-
View User Profile
-
Send Message
Posted Aug 6, 2012@turt2live Thank you sir,
Latest AS dev build on 2281 -
AS affect creative is hitting my survival players - stoping them on occasion from using random blocked creative items. No visible reason why. These people have no creative ability.
Still cannot block thrown potions though.