TimedCommands
TimedCommands
Overview
This plugin was requested and sponsored by semibreve42.
It executes commands based on player play times.
Commands
To reload the configuration:
/TimedCommands reload
To reset a players player time:
/TimedCommands reset player
To show your play time:
/playtime
Configuration
You need a configuration to tell the plugin which commands to execute. This configuration is placed at:
plugins/TimedCommands/config.yml
Example:
foo: seconds: 30 command: 'say Playertime for {player}: 30s!' permission: timedcommands.30s foo1: seconds: 60 command: 'say Playertime for {player}: 1m!' foo2: seconds: 90 command: 'say Playertime for {player}: 1m 30s!' blub: seconds: 120 command: 'say {player} is in world {world}!'
Permissions
This supports superPerms:
permissions: timedcommands.reload: description: Reload me! default: op
You can also specify permissions on a per command base. See Configuration for more details.
To do
- Commands for adding/removing timed commands (with permissions).
More permissions.
Anyway it would be possible to add a command that adds time to someone's playtime?
Would be useful for vote rewards.
Nice work, but I would like a multiworld-support, like only in some worlds will the plugin count the time
Can it play more than one command?
Is it possible to add tags, for like people with differnt permissions or something.
Is it only seconds, or can it be hours or weeks or days?
@V10lator
?
Good bye everyone!
Can you add a permission that determines whether the plugin counts play time for that player. If I set a permission for someone, 'timedcommands.check' to true, then it will count their play time and run commands accordingly. On the other hand, if I set the permission 'timedcommands.check' to false, it will not count play time. Their play time will remain at whatever it is in the config file until the permission changes. This permission should default to true, but can be marked false if someone so desires. Personally I want to use this so that it wont count the time that people spend in the beginning help rooms.
If it doesn't happen automatically, can you add the ability to initiate a save of the current time people have on the server? Currently i only see it saving when the server is shutdown properly, but if the server crashes for what ever reason, everyone's time gets reset to the last proper shutdown. :/
Love the plugin
@cVaaaldez Just had a look at the code: No errors or deprecation warnings, so it should work just fine. :)
I really like the idea of this plugin. Does it work with the current Craftbukkit? I saw one server using it. Old versions tend to slow the server and cause errors so I dont want to just throw this in.
Or is there an alternative updated plugin? Thanks!
@DaClowns It trakcs the players online time only and is able to execute commands (for example to promot a player) at specific times.
Have a look at plugins/TimedCommands/TimedCommand.sav - it's a yaml file in the format
playername: onlineTime
othername: otherTime
...
where onlineTime and otherTime is the time in seconds (if I remember correctly). The file wasn't meaned to be edited, hence the .sav (instead of .yml) extension... ;)
Hi, so this plugin logs players total play time, only online time, and not offline time?
Also, if the answer to my question stated above is yes, does this plugin have some way of letting me add playtime to certain players, whether it be a command, or manually typing it in a config?
@MCBuncey I don't know what deletes the file, but it's not TimedCommands. TimedCommands only reads from but never writes to the config.yml file.
Having problem with this also it keeps deleting the config.yml file is that normal?
@Torn_G You can write whatever you want instead of foo. It doesn't mean anything and is just to difference the commands. That mean you can't have 2x foo (or 2x bla, or 2x X, or 2x whatever you want o.O)
Hey, Nice plugin What is with the foo: and, foo ??? does it mean something?
ty so much for updating :D
Any way to have commands that go off a certain time of day? This would be a GREAT option, if not already available.
please update this to support R-4 i really love this plugin,,