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 hope the author can modify the player's game time than after being punished or game harvest halved, do not directly be kicked out of the game
I'm even willing to make a donation to get this working with 1.7.10.
Author not answering his PM's...
I guess it's a lost cause...
So I tried it in 1.7.10 Cauldron server and it doesn't seem to work...
Cauldron 209 runnig on forge 1.7.10 1231.
I get this error.
http://pastebin.com/zMZHnce4
@Fluxty
Permission PEX doesn't work well. I stopped using it and all of a sudden all these permissions I never knew existed started working.
Using Group Manager now.
Seems like the "antiaddict.ignorelimits" permission is not working. I have it listed in the "admin" group in PEX and I'm still being removed from the server.
Removed the inheritance, unfortunately nothing changed.
Neither players in the players-group nor those in the spectators-group get put into the apropriate AntiAddict group.
But thanks for the quick reply^^
@Atsuraelu
This probably happens because you have the players group inheriting the default group.
I've got a little bit of a problem...
No matter what I do, all players are put into the default group.
AntiAddict config.yml:
AntiAddict groups.yml:
PermissionEx permissions.yml:
Can someone please tell me, what I'm doing wrong?
@nebzero
It's really easy. You can make seperate groups with each their individual time limit. After you've set all the limits, you can give a player a certain permission to be part of the group. See the comments at the top of the antiaddict config.
So... How do you set this up? There's no instructions. Please help, thanks!
What do you suggest then? Its still setting peoples reputation to below whatever I have the min set up to as well?
@mjtillis2006
Unfortunately it's working as it should for me.
Any luck?
@mjtillis2006
It's very odd that it's not working. I'll be testing your setup to see if I can get it to work.
Hey Staartvin, I just want to say thanks for sticking with me on this one. I have linked my three config files, this is current. The players logging in no longer start at a low reputation for whatever reason so that has been fixed somehow. However, I still can not get it to where the higher promoted players on my server are not limited to playing time. Even myself as the owner have a time limit. Any insight on this would be great. Or if there is a link to a tutorial that I could look at and maybe I have just missed something.
# AntiAddict v2.0 Config
AntiAddict:
LimitAll: true <<<<<<<<<<<<<<-------------------------------------------------
PermissionsWarningOnStartup: true
ShowWhenAddictJoinsServer: true
ReputationPointsBan: 4
NoticeOnVersionUpdate: true
World:
UseMultiWorldSetup: false
ExemptedWorlds:
- unusedworld
# Group config
# Time limit is defined in minutes.
# To assign a player to a group, give them the permission with the group name.
# Example: When you give Herobrine antiaddict.groups.Default it will assign Herobrine to the Default group.
# Names are case-sensitive. So antiaddict.groups.default wouldn't work.
Groups:
Default: <<<<<<<<<<<<<<<<------------------------------------------------------------------------------------------------------------
time limit: 90
Guests:
time limit: 60
Group inheritance
#
# Any inherited groups prefixed with a g: are global groups
# and are inherited from the GlobalGroups.yml
#
# Groups without the g: prefix are groups local to this world
# and are defined in the this groups.yml file.
#
# Local group inheritances define your promotion tree when using 'manpromote/mandemote'
groups:
Default:
default: true
permissions:
- antiaddict.groups.Default <<<<<<<<<-------------------
- antiaddict.lefttime
- essentials.helpop
- essentials.afk
- essentials.afk.others
- essentials.balance
- essentials.balance.others
- essentials.balancetop
- essentials.ban.notify
- essentials.kit
- essentials.kits.tools
- essentials.msg
- essentials.msg.url
- essentials.rules
- essentials.spawn
- -bukkit.command.kill
inheritance:
info:
prefix: '&e'
build: true
suffix: ''
Member:
default: false
permissions:
- essentials.del.home
- essentials.exp
- essentials.home
- essentials.sethome
- essentials.tpa
- essentials.tpaccept
- essentials.tpdeny
- essentials.pay
- essentials.kits.survival
- essentials.signs.use.buy
- essentials.signs.use.free
- essentials.signs.use.sell
- antiaddict.ignorelimits <<<<<<<<<---------------------------------
inheritance:
- default
info:
prefix: '&4[Member]'
build: true
suffix: ''
Donator:
default: false
permissions:
- essentials.sign.use.enchant
- essentials.kits.donator
inheritance:
- member
info:
prefix: '&f[Donator]'
build: true
suffix: ''
Admin:
default: false
permissions:
- antiaddict.admin
- essentials.ext
- essentials.fly
- essentials.fly.others
- essentials.getpos
- essentials.getpos.others
- essentials.help
- essentials.kick
- essentials.kick.exempt
- essentials.kickall
- essentials.time
- essentials.time.set
- essentials.tp
- essentials.tp.others
- essentials.tphere
- groupmanager.manuadd
- groupmanager.manpromote
inheritance:
- donator
info:
prefix: '&5[Admin]'
build: true
suffix: ''
Owner:
default: false
permissions:
- mcore.*
- '*'
- -vanish.*
inheritance:
- admin
info:
prefix: '&2[Owner]'
build: true
suffix: ''
@mjtillis2006
If you give a group antiaddict.groups.groupname it will belong to that group and have the time of that group. antiaddict.ignorelimits should allow a player to play for as long as they want.
So Staartvin, if i put antiaddict.group.default under the lowest group it will give it the time allowance of the default group, and then if i put antiaddict.ignorelimits under the first one above it then the rest should have unlimited time?
You also said no one is assigned to a group so no one has limited time. Thats the opposite of whats happening. Everyone is actually limited to time even though I have the ignorelimits permission in place.
@Schuis
It resets the players time after the next day.
@mjtillis2006
As far as I can see, nobody is assigned to an AntiAddict group. That's why no users are limited.
Hey guys,
I'm from Germany and I've got a question about this plugin. When does it reset the time?
Schuis