USBP
USBP
USBP is a simple plugin which allows you to schedule server commands.
It is really easy to schedule a command. All you need to do is edit the config.cfg inside of the usbp folder. At the moment there are two different types of jobs you can add.
1. do jobs
There are two types of the 'do job' at the moment. The first do type is 'onFirstJoin'. This command will only run if a player joins for the first time The second type is 'onJoin'. This command will run every time a player joins.
To add a do command use the following pattern:
do;type;USBP command;server command/string;argument1;argument2;...
Example:
do;onFirstJoin;execComm;eco give @ @;playerName;1000
Note: You can use '@' to specify where the arguments should be added. The arguments will be added in the order you specify them.
2. schedule jobs
To schedule a command you can use the following pattern:
schedule;time;number of runs;USBP command;server command/string;argument1;argument2;...
Example:
schedule;1;-1;logConsole;This is a test log
Note: If the time is set to a negative value the command will be rescheduled until the server stops. Note: The time is specified in bukkit ticks (20 ticks are roughly a second)
USBP Commands
execComm = Executes a given server command tellPlayer = shows a chat message to a given player logConsole = prints a message in the server log
Note: All server commands will execute with the permissions of the console.
To make it a bit more user-friendly, maybe it could be a .yml configuration?