Added language configuration. (plugins/SRV-Cron/lang/messages_en.yml)
Fixed an issue with config not appearing on first start.
Added "notify-update" config option.
Added "silent-start" config option.
If notify-update is set to false - there won't be a notification in the console. If silent-start is set to true - there will be less messages in the console on startup.
"<ALL+>" prefix for command in Event-Job will be executed by every online player INCLUDING the player who dispatched the event.
Otherwise, it will exclude the player who dispatched the event.
Example usage without <ALL+> prefix:
Code (YAML):
join-event:
welcome:
time: 1
commands: - tell
{player_name
} Hello!
# Console will send a message to the player. - <ALL>
[CHAT
] Hello
{player_name
}!
# Every online player will send a chat message.
Added <ALL> command tag. If command starts with this tag, it will be executed by EVERY online player. If not supplied in a Cron-Job - the placeholders will still be parsed, but without a player. (Ex. Server expansion will still work) and the command will be executed by console. If not supplied in an Event-Job - the placeholders will be parsed only for the player that dispatched the event and the command will be executed by the PLAYER if the command does not start with [CONSOLE].
For events, if you wish to parse placeholders (using PlaceholderAPI) regarding the player, that dispatched the event - use {}`s. (Ex. {player_name}).
- Added Tab-Completer - it is easier to browse the commands now. - Added some new API related things for developers. - Fixed the issue where the config would regenerate. - Added four new commands - Changed the permission of the existing commands. - Improved the look of the current job list and also added event job list.
You can view event jobs using /srvcron list events command.
srvcron.command.jobinfo /srvcron jobinfo <job-name> - displays some information about a job.
srvcron.command.suspend /srvcron suspend <job-name> - suspends a job and it's execution will be skipped on the next dispatch. This will also show a message to the console, that the job is suspended and was skipped.
srvcron.command.resume /srvcron resume <job-name> - resumes a job and it's execution will no longer be skipped on the next dispatch.
srvcron.command.run /srvcron run <job-name> - dispatches the job manually. /srvcron run event <event-name> - dispatches event commands manually. (May cause some issues, use at your own risk)
You can now filter out the players using placeholders: - '[PLAYER (%vault_eco_balance% > 1000)] This will only be executed by the player if he has more than 1000 balance.'
Same applies to all the other actions, title, message, sound, etc., ex: '[TITLE (%vault_eco_balance% > 1000)] You have more than 1000 balance!' This will send a title to all the players that have more than 1000 balance.
Available operators: - X less than Y: < - X is greater than Y: > - X less or equal to Y: <= - X is greater or equal to Y: >= - X is equals to Y: == - X is not equals to Y: !=
This works best for placeholders that return numeric values. Operators might also work for values that return yes or true, ex.: - '[PLAYER (%player_is_op%)] shout Yay, I'm an OP when this job was executed.'
Added additional command action types. Commands that do not start with [ will be executed via console by default.
[MESSAGE] or [TEXT] -> this will send a direct message to the player. [PLAYER] -> a command will be sent by the player. [CONSOLE] or none -> a command will be sent by the console. [TITLE] -> will show a title to a player. A more detailed usage below. [SOUND] -> this will play a sound to the player. Detailed explanation: This will play a sound to the player. The first argument is the sound, the second is the volume and the third is the pitch. You can find a list of sounds here: https://www.digminecraft.com/lists/sound_list_pc.php - '[SOUND] ENTITY.PLAYER.LEVELUP, 1.0, 1.0' This will show a title to the player. The first argument is the title, the second is the subtitle. The last three are: fade-in, stay and fade-out times. - '[TITLE] This is a title, This is a subtitle, 20, 60, 20' Alternatively you can use opt out the subtitle or the times, or just the subtitle. - '[TITLE] This is a title' - '[TITLE] This is a title, 20, 60, 20'