-
Notifications
You must be signed in to change notification settings - Fork 44
/
scripts.txt
41 lines (37 loc) · 1.77 KB
/
scripts.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# The 'scripts' plugin uses a cron-like syntax.
# TIME FORMAT
# similar to cron - http://www.adminschoice.com/crontab-quick-reference
# currently does not support ','
# all examples are given for the 'minute' field:
# * run every minute
# 0 run on the hour
# */5 run every 5 minutes
# 0-30/5 run every 5 minutes for the first half hour of every hour
# EVENT FORMAT
# instead of specifying a time, you may specify an event to listen out for.
# a list of available events can be seen by running ~events from console.
# to use, replace the time spec with '@eventname', e.g. '@serverstopped'
# You can also specify arguments from the event to format using '{arg_name}'.
# See the '@playerchat' line below for an example.
# COMMAND FORMAT
# # print the # and everything following it to the mark2 console
# / run a minecraft command
# ~ run a mark2 command
# $ execute a shell command, you can define the shell to use in your
# mark2.properties. each line of the command's stdout will be
# interpreted as one of the above.
#
# #----------------------------- Minute (0 - 59)
# | #------------------------ Hour (0 - 23)
# | | #------------------- Day of the Month (1 - 31)
# | | | #-------------- Month (1 - 12)
# | | | | #--------- Day of the Week (0 - 6)
# | | | | | #---- Command to run
# | | | | | |
*/15 * * * * ~save 1m
0 */6 * * * ~restart 10m;5m;1m
@serverstopped $rm server.log
@playerchat /msg {username} I saw your chat message. It said: {message}
# */5 * * * * /tps
# @serverstopped ~backup
# @serverstopped $carto.sh