config
triggers:
exampleEvent:
type: de.st_ddt.crazyutil.trigger.ScheduledTrigger
actions:
- example
enabled: true
date: 2012.04.05 11:57:00
actions:
exampleAction:
type: de.st_ddt.crazyutil.action.Action_MESSAGE
messages:
- This is a default message
- Welcome to the minecraft server of COOLNESS
- 'Message with special characters: ACT_ON "The Dooms Day" started.'
---------
Trigger:
type: TypeString
actions:
- actionname1
- actionname2
- ...
enabled: true/false
StartupTrigger extends Trigger
'#executed after server started and after every reload, you should add a Action_DELAYEDACTION, to wait until every plugin is loaded.
ScheduledTrigger extends Trigger:
type: de.st_ddt.crazyutil.trigger.ScheduledTrigger
date: 2012.01.31 18:57:00
ScheduledRepeatedTrigger extends ScheduledTrigger :
type: de.st_ddt.crazyutil.trigger.ScheduledRepeatedTrigger
repeat: 1 (amount of times this trigger will be repeated, -1=infinite)
interval: 1000 (time: this trigger will be repeated after time in milliseconds)
---------
Action_MESSAGE:
type: de.st_ddt.crazyutil.action.Action_MESSAGE:
message:
-blub
-my message you all know
-this is non-sense
Action_COMMAND: (Executed as console)
type: de.st_ddt.crazyutil.action.Action_COMMAND:
commands:
-say Let it shine
-time day
-weather sun
Action_ACTION:
type: de.st_ddt.crazyutil.action.Action_ACTION:
action: Actionname
Action_DELAYEDACTION: (extends Action_ACTION)
type: de.st_ddt.crazyutil.action.Action_DELAYEDACTION:
action: Actionname
delay: 1000 (delay in milliseconds)
ActionList_MULTI: (Execute all actions)
type: de.st_ddt.crazyutil.action.ActionList_MULTI:
actions:
action1:
type: ...
...
action2:
...
...
ActionList_RANDOM: (Execute random actions)
type: de.st_ddt.crazyutil.action.ActionList_RANDOM:
amount: 1 (number of actions to execute)
actions:
action1:
type: ...
...
action2:
...
...
ActionList_ORDERED: (Execute actions ordered, only one/execution)
type: de.st_ddt.crazyutil.action.ActionList_ORDERED:
currentIndex: 1 (index will reset itself if it is bigger than then the amount of listed actions)
actions:
action0:
type: ...
...
action1:
...
...