AutoCommands
Supported by NLBLacky
What is it?
Do you need to run specific commands on startup? Or perhaps are you wanting to run a command X minutes after startup? Very possibly, you’re trying to run a command every couple minutes? This plugin can do exactly that!
AutoCommands allows you to run commands on startup, on startup with a delay, or from startup on a particular interval. Everything is configurable and the different modules can be enabled/disabled with ease.
How do I use it?
- Drop the plugin jar file into your
/mods
or/plugins
folder. - Launch your server and that’s it!
Configuration
By default, all modules are disabled so that you don’t send any blank commands. Feel free to preload your configuration in the file /autocommands/autocommands.conf
delay {
console-commands=[
"say hello world!"
]
delay-in-minutes=2
enabled=false
}
interval {
console-commands=[
"say hello world!"
]
enabled=false
interval-in-minutes=1
run-straightaway=true
}
player {
intervals=[
{
console-commands=[
"adminpay "
]
enabled=true
interval=5
permission="group.one"
player-commands=[
"pay "
]
},
{
console-commands=[
"adminpay "
]
enabled=true
interval=10
permission="group.two"
player-commands=[
"pay "
]
}
]
on-join-commands=[
"join command"
]
}
startup {
console-commands=[
"say hello world!"
]
enabled=false
}
Support
If you ever need support with regards to our plugin(s), please don’t hesitate to contact us directly on our community Discord server. You can find it here: https://discord.gg/tKKeTdc