AntiAddict Revisited
AntiAddict Revisited - Limit some players' playtime on your server
Version: v2.1
Description:
If you are an admin who really cares about the players of your server, there might come a day when you recognise that some of them got addicted to the game and really play to much on your server. AntiAddict is a plugin which allows you to limit the time specified players can play on your server. This timelimit will be reset the next day, which then would allow them to play again. (so normally it's daily).
The first developer of this plugin was Phiwa, who wrote most of the code. He read a plugin request by wuppieigor and recognised that there are some server admins who really care about the players on their server and do not only watch the number of slots they manage to fill.
(Follow me on Twitter for updates!)
Quote from Phiwa:Of course you cannot control what the players do on other servers or in single-player, but it is a step into the right direction. In my opinion it is great that those admins care about their members and therefore wrote this plugin to help them with it.
After a long time and finally releasing AntiAddict, a lot of server admins became familiar with it and started to love it. Unfortunately, Phiwa had a busy time and couldn't update his plugin anymore. All were sad. I decided to step in. Staartvin. I'm the new main developer of AntiAddict and I will do my best to make this plugin even better than it was!
Features:
- Ability to set which players are 'addicted'
- Highy customisable messages with more than 14 translations.
- Ability to check how much time you have left untill you're kicked
- Easily see which players are 'addicted'
- Permissions used for commands
- Ability to limit all players on the server with one simple toggle
- Support MultiWorld. Configure which worlds you want to use!
- Ability to turn off MultiWorld and just use all worlds, as default.
- Admins will be noticed when there is a new version available.
- Addicted players will get noticed when they're getting kicked soon.
- Translations for 14 countries.
- Ability to see info about an addict, such as: total playtime, language, time left, reputation and more!
- Group support. Make multiple groups that have different time limits
Screenshots:
What is shown to addicted player:
What is shown in console when addicted player logs in:
What is shown when addicted player gets kicked:
What is shown in console when addicted player gets kicked:
Commands:
- /antiaddict <on/off> (De)activates AntiAddict.
- /antiaddict status Shows the current status for AntiAddict (on/off).
- /antiaddict left Shows the time the player has got to play.
- /antiaddict about Shows useful information about AntiAddict.
- /timeleft This command is deprecated and therefore not used anymore.
- /antiaddict config reload Reload AntiAddict's configs.
- /antiaddict language set <language code> (player) Sets the language for a specified player if specified, else it will set the language for player who used command.
- /antiaddict language list Shows the available languages and their language code.
- /antiaddict info <player> Shows information about the player, such as language, reputation , time left and total playtime.
- /antiaddict help Shows all commands.
- /aa <command> This is an alias to /antiaddict. You could use this as '/aa config reload' for example.
Permission-nodes:
- antiaddict.admin - Allows the player to control AntiAddict.
- antiaddict.ignorelimits - Gives the player the ability to ignore the timelimits for addicts if LimitAll is set to true in the config.
- antiaddict.lefttime - Gives the player the ability to check how much time he/she has left before getting kicked.
- antiaddict.* - Gives the player total control.
- antiaddict.versionnotice - Players with this permission will be noticed when the plugin is outdated.
- antiaddict.language.list - Gives the player the ability to get a list of available languages and their language code.
- antiaddict.language.set - Gives the player the ability to change their language.
- antiaddict.language.setother - Gives the player the abilty to change the language of others.
- antiaddict.infoplayer - Gives the player the ability to get info about other players.
Supported Languages:
- - English
- - Dutch
- - German (Thanks to Phiwa)
- - Polish (Thanks to Phiwa)
- - Italian (Thanks to samu301295)
- - Brazilian Portuguese (Thanks to TheLunarFrog)
- - Spanish (Thanks to TheLunarFrog)
- - French (Thanks to MrLongBacon)
- - Danish
Requests:
If there is anything you would like me to add, simply ask for it.
Known Bugs:
Totally bugfree!
Donations
I'm a poor student and I'm developing this plugin in my free-time, if you like my plugin and want to help me, please donate. Donating is the best way to help me out, it goes towards more bug-fixing. Thanks!
i wait for this:
Ability to turn off MultiWorld and just use all worlds, as default. Support MultiWorld. Configure which worlds you want to use.
Could then be limited to a Creative-map the season :)
Please don't let this plugin die! I use it to limit the amount of time my VIP players get in the creative map. Multiworld support allows me to disable this in our survival mode map, thanks!
@MrRhino27
Hmm, that's really weird.. When I stop the server and start it again, (manual restart) the plugin fixes itself. Try to manual restart? I'm currently working on multiworld support and on improving the current method of calculating the time left. If it will work, it will fix a lot of bugs and the restart function.
I use multicraft as the console software, so i use the restart button.
Which in turn stops the server, then starts its.
@MrRhino27
How do you restart the server? Just by /stop and then /start?
Ok, so i start it up after a restart and installing the plugin. Works fine as a charm, commands were working, hadnt had a chance to test kick. I reloaded, it wouldnt work after that, so i restarted the server, after that it still wouldnt work, the main command that starts off the bugs is /timeleft or /antiaddict left both of them just wont work. I get a message in game saying "Errors occured when trying to pass event command" or something similar.
@MrRhino27
Ok, good to know. Thank you for the error logs, i'll try to get them away. Can you describe what you do when you get the errors?
Thanks in advance, Staartvin
Im very sorry to let you know, GroupManager isnt binding with AntiAddict. Its just saying no permissions plugin. here are the plugins that the server runs on: GroupManager, NoCheatPlus, WorldEdit, NoSwear, Vault, RealPlugin, Multiverse-Core, Jail, WorldGuard, MineBackup, RealShop2, Permissions, BKCommonLib, OpenInv, mcbans, TimedMessages, FalseBookCore, FalseBookCart, Essentials, EssentialsProtect, FalseBookChat, EssentialsSpawn, FalseBookBlock, Multiverse-Portals, Multiverse-Inventories, EssentialsGeoIP, LogBlock, LWC, dynmap, Train Carts, FalseBookIC, EssentialsChat, FalseBookExtra, VanishNoPacket, Train Carts Blocks
I believe a reload actually breaks the plugin too. If you do a reload, then restart it breaks and it wont work unless you put a new jar file in. Hope this helps :) Keep up the good work :) Once again here are some server errors, i will try and get past the "10more..." and get you those errors:
07.05 14:38:19 [Server] INFO ... 10 more 07.05 14:38:19 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) 07.05 14:38:19 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:601) 07.05 14:38:19 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 07.05 14:38:19 [Server] INFO at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) 07.05 14:38:19 [Server] INFO at me.staartvin.AntiAddict.Players.onPlayerMove(Players.java:93) 07.05 14:38:19 [Server] INFO Caused by: java.lang.NullPointerException 07.05 14:38:19 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 07.05 14:38:19 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) 07.05 14:38:19 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) 07.05 14:38:19 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 07.05 14:38:19 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) 07.05 14:38:19 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 07.05 14:38:19 [Server] INFO at net.minecraft.server.Packet10Flying.handle(SourceFile:126) 07.05 14:38:19 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:209) 07.05 14:38:19 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) 07.05 14:38:19 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 07.05 14:38:19 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) 07.05 14:38:19 [Server] INFO org.bukkit.event.EventException 07.05 14:38:19 [Server] SEVERE Could not pass event PlayerMoveEvent to AntiAddict
Ok, well until an update i cant really use the plugin :( Great plugin, am looking forward to an update. Thanks for all your support :)
@MrRhino27
One of the known bugs is that, when you reload the server. It doesn't save and leaves the hashmaps open. This causes errors. Try avoiding the reload command, and use start/stop instead. I'll be fixing it though.
Hello i had a fiddle around with anti-addict, now it works :D However as stated above i am just getting issues with /antiaddict left after a reload.
@MrRhino27
I've made a short-time fix here: http:dev.bukkit.org/server-mods/antiaddict/pages/problems-solutions/
@MrRhino27
I'm currently working on a fix.
I cant get any more detailed errors than that sorry, and the main issues i am still having is that it simply isnt working. Is there a possibility that there will be an update soon?
To repair the plugin put config.yml from AntiAddict.jar to plugin folder.
Note: after plugin reloadind no changes in config.yml are been saved.
So change config.yml inside AntiAddict.jar avery time you configure the plugin.
@MrRhino27
Could you paste the whole code. Because there are things cut out. Thank you.
Hello, i have managed to get the config from the .jar file. I think it is working now, however i am now getting errors when im trying to use the command '/antiaddict left' Error Here
Yeah the faults we are finding are that it just wont work, and it spams the console with errors, typing a command in-game does absolutely nothing at all. It seems the whole error fault is started by someone joining, after that its just an amazing amount of errors, so many I cant even find where they started in the console because it goes too far. Here is the link for the errors: AntiAddict Errors - pastbin
@MrRhino27
Ok. Does it give any faults in the server console or in-game? If so, could you post them on pastebin and show me?
Hi, i am finding errors in the console when using this, i am using the latest 1.2.5 version. I think it has something to do with the config not downloading, it is simply an empty file.