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.
Version 2.0.3 is out!
It removes the 'CPU bug' through a new feature: Virtual storage.
(Literally just stops using the CPU as much as possible)
If you have issues please let me know whether it be you find the bug is still there or a feature doesn't work anymore! (I try to test everything but sometimes things get through :( )
@ad35226
I have a development build that I made to specifically target CPU use, and in my testing it does reduce CPU load if you want to give that a shot.
Edit: Here is a download link: Jenkins Build
Yes I can confirm this CPU bug as well. Today I am going to try to use the plugin again, but this time, disable Inventory and world transfer switching and let MultiInv handle the seperate inventories. I will see how it goes.
Sorry for the delays, I'm trying to fashion a way to streamline block checks so CPU use doesn't go up while having everything happen fast.
@compkiosk
That is really strange, I'll look into it some more :/
@turt2live
Tried your dev build and I'm still getting the CPU bug. When I disable it the bug is gone.
@ickykid94
Sorry for the long delay, I had to determine what code can, and cannot, be removed.
I do have a development build (safe for running), but I don't want to release it as a 'release' until I'm certain the CPU bug is gone, so I was wondering if you are able to test it for me?
If so, you can download it here (from my Jenkins)
@turt2live
Ok. Thank you very much. :D I loved the plugin in the time that we had been using it, and I hope that the issue can be sorted out. I appreciate the effort you put into maintaining and improving your work.
@ickykid94
I've narrowed down the problem to a few places, it looks like it's a Bukkit problem though.
I should have a fix out in a few days (due to work, I wish it would be hours)
@turt2live
Wow. That's very interesting; and yeah, the server is made for up to 50 players. When I was running 1.0.5 on the server (on accident), it ran splendidly. It was only that someone mentioned enchantments not being saved that I realized I installed the wrong version. I don't know if that can help knowing that older versions worked well; just throwing out a bit of information. Thank you for your help.
@ickykid94
I've been running tests on AntiShare for the past hours and can only conclude AntiShare is not built for servers with 50+ people on it (a large problem).
If I'm correct about that, I'm going to assume your server (as well as the previously reported lag on other servers) meets that requirement.
I'll see what I can do to decrease lag an CPU use as this plugin should be used by larger servers rather than smaller ones.
Edit: I just ran some test code (changes the gamemode of all players online as fast as the machine will go) : It crashes the server in 5 minutes (about 1000 switches / second)
@turt2live
Server's been running on Ubuntu 10.04.3 LTS
(sorry for my slow responses)
@ickykid94
This bug has been reported on some machines but not all, if possible may I know the operating system?
I'm currently looking through other reports of this to better narrow it down, hopefully I can find it soon.
sorry, I didn't delete my comment quick enough. Quick response, though. XD
My issue was that I somehow downloaded an outdated version. I updated and enchantments were saved. :3
However... The updated plugin is a massive CPU hog on the machine. :/ Without the plugin, CPU is about 14-20%. With it, the system was averaging 85-90%. Removed the plugin and things went back to normal. I don't know how much of a help that is, but confirming some kind of CPU bug. Happened even after disabling block logging.
@ickykid94
I'm guessing you are using flatfile, if you are not, please let me know.
If you are however, you will notice a bunch of errors in your server log. This is because Bukkit broke the saving of items to file, sadly, there is nothing I can do until the next RB (as the development builds are not supposed to be used on live servers). :(
I do apologize for the issue, although I can't fix it.
@br1ngiton
I can't replicate your issue at all.
The only way your server could have such a high load because of AntiShare is because of scenarios this plugin is not developed for, being:
In general, your server would need AT LEAST 200+ people online spamming block place/destroy or spamming game mode changes in order to kill your server with lag because of AntiShare.
Generally your server will shutdown before AntiShare causes excessive lag under the shear load of the players already online.
If you can send me more details via PM for me to try to replicate your issue, it would be appreciated.
No luck, even using SQL it brings down the TPS to sub 5.
@br1ngiton
@ThisUsernameIsMine
Yes, sorry, I meant you should try to use a MySQL database if possible for inventory-related plugins (like AntiShare) because Bukkit broke the flat-file storage system (cannot case int to short).
I would have explained this beforehand, but my phone is nearly useless to even bother trying >.>
Sorry
@br1ngiton
Perhaps he means that you should use M(y)SQL-database for your plugins (if they support it).
@turt2live
Can you explain what you mean by use SQL?
I'm having the same type of problem whereby after a little while the server CPU runs to up to 100% and the TPS goes down below 5. I have narrowed it down to antishare.