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 Sep 15, 2012Hello, I have used anti share for a long time now on my server.
However, for some reason a castle which was built in creative a while ago is suddenly mineable in survival but when I test the anti share again it works fine. Is it possible that antishare 'forgets' blocks after a while ? If i can't fix this I might have a very big problem D:
CB 1.3.1 RB 2.1 AS 4.1.0
-
View User Profile
-
Send Message
Posted Sep 15, 2012@jdcvanderwal
I need more detail...
Did you disable it in the config? Did you set the drop list to none by accident? Is it in any Game Mode? Is AntiShare enabled? Do they have the bypass permission? And please pastebin your config.yml for AntiShare.
-
View User Profile
-
Send Message
Posted Sep 15, 2012@turt2live
it drops all stuff what you have in your invetory and thx i update it
-
View User Profile
-
Send Message
Posted Sep 15, 2012@jdcvanderwal
Pastebin next time please...
Edit: Your error is occurring because you are using an outdated version. Update or suffer the error.
And what do you mean it drops everything? Under what conditions?
And where are the contents of 'as debug' typed into console.-
View User Profile
-
Send Message
Posted Sep 15, 2012and can you fix death drops
it drops every time the stuff
-
View User Profile
-
Send Message
Posted Sep 15, 2012this is the error:
Could not pass event PlayerQuitEvent 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 net.minecraft.server.ServerConfigurationManagerAbstract.disconnect(ServerConfigurationManagerAbstract.java:206) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:711) 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:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.getEnderChest()Lorg/bukkit/inventory/Inventory; at com.turt2live.antishare.inventory.ASInventory.generate(Unknown Source) at com.turt2live.antishare.inventory.InventoryManager.refreshInventories(Unknown Source) at com.turt2live.antishare.inventory.InventoryManager.releasePlayer(Unknown Source) at com.turt2live.antishare.ASListener.onQuit(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 14 more
-
View User Profile
-
Send Message
Posted Sep 15, 2012@ad35226
That's exactly what I need. Thank you :3
4.3.0 is going to be faster (I hope)
-
View User Profile
-
Send Message
Posted Sep 15, 2012Hi Turt, I have been a long time user of your plugin (If you remember me ^_^) And I recently did a /nolagg examine on my server to diagnose some lag issues, and found that Antishare was up top with 1650 MS of time.
Here are some plugin timings from bukkit: http://pastie.org/4725814
And a view of the NoLagg examine output: http://screensnapr.com/v/vqPyr2.jpg
I'm using AntiShare 4.2.0
-
View User Profile
-
Send Message
Posted Sep 15, 2012@jdcvanderwal
Full error in Pastebin please, as well the contents after typing 'as debug' into console
-
View User Profile
-
Send Message
Posted Sep 15, 2012@turt2live
for creative and survival if that is possible the most for survival
-
View User Profile
-
Send Message
Posted Sep 15, 2012could not pass playergamemodeevent thats the enderchest error
-
View User Profile
-
Send Message
Posted Sep 15, 2012if i add enderchest by block place i get errors and i don't work
-
View User Profile
-
Send Message
Posted Sep 13, 2012@mattia08
Cause my tired self patch half the problem.
I looked at the code and it makes sense how it was before.
I'm going to revert the 'fix', but here is how to make it work as expected:
Set both as deny false and block-drops true.
Or disable the block-tracking
-
View User Profile
-
Send Message
Posted Sep 13, 2012I use this config:
survival-breaking-creative-blocks: block-drops: false deny: false
With version #515 creative block drops if broken by survival, this doesn't happen with version 4.1.0.
-
View User Profile
-
Send Message
Posted Sep 13, 2012@turt2live
Now it works correctly with Residence!! (#build 515) :D
-
View User Profile
-
Send Message
Posted Sep 12, 2012@mattia08
Found a different bug instead. Not related to residence at all.
Fixing for next release.
(Edit: Fixed in dev version, build #515)
-
View User Profile
-
Send Message
Posted Sep 12, 2012@turt2live
Maybe because you have "survival-breaking-creative-blocks: false". Try with true...
-
View User Profile
-
Send Message
Posted Sep 12, 2012@mattia08
Just tested, Residence and AntiShare work together.
Here's what I did:
Player 1 creates region with these commands:
Player 1 then places 1 block inside the region, and one outside.
Player 2 tries to break both blocks, both being un-breakable.
Where did I go wrong? As far as I can tell, everything works.
-
View User Profile
-
Send Message
Posted Sep 12, 2012@lovre321
Disable the features you don't want. Check the fully commented config for more details.
-
View User Profile
-
Send Message
Posted Sep 12, 2012wow can't wait to test it out , sounds amazing!