Plugin category: Security Suggested name: Any What I want: Our server has both creative and survival freebuild, recently we have been attacked by grief clans in creative. I need a plugin that intercepts player teleport when they try to enter a world listed in the config and allows/denys the player depending on their time spent online. A denied message would also be nice to let people know if and why they aren't allowed to access the world, with a wild card for the required playtime, listed in the config. The online time is tracked by LogBlock and is stored in our SQL database under table "lb-players" in the column named "onlinetime". The onlinetime is in seconds. I would like the table and column to be defined in the config so that this plugin can be used with other similar onlinetime logging plugins. Database layout: Ideas for commands: No commands needed for this plugin. Example configuration: Code: SQL: username: user password: pass database: name host: localhost port: 3306 table: lb-players column: onlinetime Worlds: - creative - other Playtime: 3600 Deny message: "Sorry you do not have the required playtime of {PLAYTIME_WILDCARD} seconds to enter this world!" Ideas for permissions: pluginName.exempt (ignore play time) else default to Ops.txt When I'd like it by: As soon as possible, please. I've provided as much info as I can and think that this would be a nice little project for beginners or anyone else who's bored Please post any thoughts or if you also need this to encourage any devs Anyone up for this, please? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
You could use a rankup plugin with playertime mabey? So when they played like 2 days ore something they rank up to a group that can acces it? Just incase no one will make this
There are a lot of options and ways you could do this... I think the best one (in my opinion) is to automatically rank the player up after 'x' seconds, and then give them access to the world. You can use WorldGuard flags (they work on groups) to assist you.
I've been looking for a plugin which does this however can't seem to find one, can you point me in the right direction? The one's I've found all track onlinetime seperately and don't use (in my case) the time stored by LogBlock. Also our server has a very complex multiworld rank and inheritance ladder it's not so simple as to just create another group, it would require me to redo all our permissions which I really, really, really want to avoid. I suggested this plugin since it would be the most effective way to reach the desired effect for our server, and because a plugin like this doesn't currently exist plus it should be relatively easy to create and good practice for anyone
I may have an answer for you. I have just posted an updated version of OnTime (v3.0.0) which tracks player's playtime. In this update you can now import data from the logblock plugin (lb-players table) to generate the OnTime datafiles. Once imported, the OnTime tracking of time will be used, but you will be able to take advantage of things such as the eliminating AFK time, which I don't think logblock does. You can always re-execute the import command to re-sync the two databases in the future, but I think you'll like what OnTime provides. Assuming that you have some permission based control over the access to your world, you would set up an OnTime Reward to grant the permission to the specified world only after the player has been on for the specified time. for example: /ontime rewards add perm 0 10 0 access.creative.world where the permission string used by your permission plugin is "access.creative.world", and the time required is 0 days 10 hours 0 minutes of total OnTime.