SimpleCommandScheduler is a simple yet effective plugin that lets you schedule commands to be ran at set intervals.
This is what the default config looks like
# Variables: # <ONLINE> - Number of players online # <RANDOM_PLAYER> - The name of a random online player # Feel free to suggest additional variables at http://dev.bukkit.org/bukkit-plugins/simplecommandscheduler schedule: 10: - 'say This command will run every 10 seconds' - 'say This command will also run every 10 seconds' 60: - 'say This command will run every minute. There are <ONLINE> player(s) online, one of them is <RANDOM_PLAYER>.'
At the moment there are two variables available for use in commands.
<ONLINE> will be replaced with the number of online players on the server.
<RANDOM_PLAYER> will be replaced with the name of a random player on the server.
If you need more, feel free to post a suggestion in the comments.