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 23, 2012On the most recent dev (3.1.0) build, if a player is given the permission "AntiShare.gamemode", will they be able to change other players' gamemodes too? Would it be possible to create a permission that allows a player to only change their own gamemode?
-
View User Profile
-
Send Message
Posted Mar 22, 2012Regarding 3.1.0 bugs:
If possible please provide as much information as possible. The more information I have, the faster I can fix the bug and get 3.1.0 as a release.
A "good" bug report would look something like this:
Thank you :D
-
View User Profile
-
Send Message
Posted Mar 21, 2012@DonDav1
The dev builds are known for bugs.
I'm well aware of that issue and am working on a fix.
-
View User Profile
-
Send Message
Posted Mar 21, 2012hi again, was does this mean: "That is not a normal chest, you cannot break it." when i place any block, eg. sandstone in creative-mode & try to destroy it, even if stay in creative mode... it just spams the message above.
i have this bug since i tryed the newest dev builds of antishare, worldedit & craftbukkit today, but even after i restored a complete serverbackup from yesterday, it wont work anymore and breaks my creative-mode.
-
View User Profile
-
Send Message
Posted Mar 21, 2012@DrHolbr
How was the error produced?
As for commands/signs, 3.1.0 has (or will) support this much easier.
-
View User Profile
-
Send Message
Posted Mar 21, 2012Hello got this conflict between your plugin and tim the enchanter
06:27:38 [INFO] AntiShare Reloaded. 06:27:38 [INFO] [AntiShare] Reloading virtual storage. This could take a while... 06:27:38 [INFO] [AntiShare] The configuration will not work correctly until the virtual storage is reloaded. 06:27:38 [SEVERE] Exception in thread "Thread-1566" 06:27:38 [SEVERE] java.lang.IllegalArgumentException: Enchantment level is either too low or too high (given 127, bounds are 1 to 4 06:27:38 [SEVERE] at org.bukkit.inventory.ItemStack.addEnchantment(ItemStack.java:299) 06:27:38 [SEVERE] at com.turt2live.antishare.storage.ASVirtualInventory.load(Unknown Source) 06:27:38 [SEVERE] at com.turt2live.antishare.storage.ASVirtualInventory.load(Unknown Source) 06:27:38 [SEVERE] at com.turt2live.antishare.storage.ASVirtualInventory.<init>(Unknown Source) 06:27:38 [SEVERE] at com.turt2live.antishare.storage.VirtualPerWorldStorage.load(Unknown Source) 06:27:38 [SEVERE] at com.turt2live.antishare.storage.VirtualPerWorldStorage.build(Unknown Source) 06:27:38 [SEVERE] at com.turt2live.antishare.storage.VirtualPerWorldStorage.<init>(Unknown Source) 06:27:38 [SEVERE] at com.turt2live.antishare.storage.VirtualStorage.build(Unknown Source) 06:27:38 [SEVERE] at com.turt2live.antishare.storage.VirtualStorage.reload(Unknown Source) 06:27:38 [SEVERE] at com.turt2live.antishare.storage.VirtualStorage$1.run(Unknown Source) 06:27:38 [SEVERE] at java.lang.Thread.run(Thread.java:662)
Also i was wondering if there is any way to prevent creative players from interacting with signs for other plugins such as ChestShop/WebAuction (so they cant sell creative items), i already tired blocking interaction with 323 68 63. With those blocked they cant edit text on signs but can still interact with the other sign features. Also i blocked the command "/sell" and it did indeed block the "/sell command" but not the others such as "/sell hand"
-
View User Profile
-
Send Message
Posted Mar 20, 2012@rasnyderiii
Looks like that would be a bug where AntiShare can't save their inventory fast enough, I'll see what I can do
-
View User Profile
-
Send Message
Posted Mar 20, 2012Any suggestion on preventing this:
(1) Normal player puts items into a chest (this player is ONLY survival
(2) they X out of minecraft and log back in quickly
(3) They log back in with the old inventory and items in chest
Thats.. a problem. Any idea of how I could stop that?
-
View User Profile
-
Send Message
Posted Mar 20, 2012@DonDav1 At the moment, no where (major bug, I know, and I'm working on it)
Edit: In regards to WorldGuard conflicts:
AntiShare has gamemode regions that have similar functionality as WorldGuard, where it allows/blocks/forces certain things onto the players, because of this fact if (or when) a WG and AntiShare region overlap issues may occur (like the proposed MobArena bug), so I made AntiShare warn that there may be problems (The reason why it says it won't take action against it). The warning is purely precaution, and more or less for me to let people know that things MAY not work 100% while WorldGuard and AntiShare are running.
Although the warning is there, it can be ignored if you don't have WG and AntiShare regions close (5 blocks) to eachother (or overlapping). Likely once I go on a testing spree the warning will be removed as I haven't found any issues (yet) with WG running overtop of AntiShare.
@rasnyderiii
I'll look into it
-
View User Profile
-
Send Message
Posted Mar 20, 2012Small oddity - If you have mob arena - you can join the arena from inside a "creative region" since cannot disable "/ma join" - yet - and on exit of the arena be stuck in creative. (without the permission)
Thank you for your work and progress on this amazing plugin!
-
View User Profile
-
Send Message
Posted Mar 20, 2012thx for info the pastebin-error is fixed in the newest dev-build, another question , will AS-3.1.0 be compatible with worldguard, because it says there is a conflict...
i know there are some bugs in creative-block-logging... but where are the logged blocks saved, if i dont use a SQL-database, i think there must be any flat-file. Or does it save direct to player.dat or region-files?
-
View User Profile
-
Send Message
Posted Mar 20, 2012@DonDav1
Known bugs.
Edit:
Guess I should check what I type before actually posting :P
The tracked blocks are not stored as they used to be (thanks to Bukkit). I am well aware of this bug and working on a solution either in CraftBukkit itself or a workaround within AntiShare.
As for the error, it may be a cb 2060 issue, I personally build for the latest dev in anticipation for the next RB, as 3.1.0 will be released when the RB is out (or sooner if it takes too long...).
In the end, the dev builds of AntiShare are known to have bugs (I have a list I'm working on), and those bugs range from plugin-breaking to spelling errors, I am trying to get through them all, but they are still there.
-
View User Profile
-
Send Message
Posted Mar 20, 2012Hi, which file does contain the tracked creative blocks from the block-tracking system in v3.0.0 & v3.1.0 ? Because i lost the tracked blocks of about 2-3 days after testing some dev-builds. I have backups for restore but i cant find the file with the stored blocks.
Also i get exact the same error as "rasnyderiii" pasted on pastebin. im on cb#2060.
-
View User Profile
-
Send Message
Posted Mar 19, 2012@rasnyderiii
I'll look into it, but I have no fixes.
Please report issues with dev builds with the bug report link.
-
View User Profile
-
Send Message
Posted Mar 19, 2012Latest Dev build
- Experience bottles can be thrown.
- 385 - fire charge - possible addition to creative mode restriction on use? I tried adding this to the restrict interact but did not prevent use
- 342 - 343 - Minecart Storage - can put items in these while in creative mode
My config in case I made any mistakes
Config
Permission nodes used:
- AntiShare.freePlace
- AntiShare.gamemode
Latest Dev Build + CB 2033 1.2.3
-
View User Profile
-
Send Message
Posted Mar 19, 2012@rasnyderiii
Looks like part of the error is missing, if you can provide that it would help :)
I'll run tests either way when I get home (clearly a disable issue) and add any issues to the 3.1.0 todo list
-
View User Profile
-
Send Message
Posted Mar 19, 2012This is so amazing on every level I want to try it out soon on my live server!
Testing offline error:
Pastebin
[AntiShare v3.1.0-PRE RELEASE] CB 2033 1.2.3
Also: How do you prevent commands with 2 words in creative mode? for example remove "/sell hand"? Putting in blacklist /sell does not prevent the /sell hand from working
-
View User Profile
-
Send Message
Posted Mar 17, 2012@Taibarian
Please pastebin the error, I can't read it here and it's quite lengthy.
Edit:
I just decoded the thing, and tried to find where the issue is, and came up with nothing. Check your configuration for invalid stuff, like extra spaces, incorrect spellings, etc.
-
View User Profile
-
Send Message
Posted Mar 17, 2012I really like this plugin but it clogs my console with this
2012-03-17 18:03:30 [SEVERE] Could not pass event PlayerInteractEvent 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 org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168) at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:623) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:129) at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:116) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NullPointerException at com.turt2live.antishare.storage.VirtualStorage.isBlocked(Unknown Source) at com.turt2live.antishare.ASListener.onPlayerInteract(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:301) ... 14 more 2012-03-17 18:03:30 [SEVERE] Could not pass event BlockBreakEvent 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.ItemInWorldManager.breakBlock(ItemInWorldManager.java:218) at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:103) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:623) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:129) at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:116) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NullPointerException at com.turt2live.antishare.storage.VirtualStorage.bedrockBlocked(Unknown Source) at com.turt2live.antishare.ASListener.onBlockBreak(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:301) ... 14 more
I'm not sure if this is AntiShare or Spout. I run both. But if its spout then i would like to know if you can link with them. It would help for me.
-
View User Profile
-
Send Message
Posted Mar 17, 2012@ntrixter
Known bug, fixed in 3.1.0 (Next release, coming out as soon as possible)
@l4pierce
As a temporary fix, you can deny placement of TNT, add 46 to the events: block_place: portion of your configuration