Sueta

StartupCommands

0.0.6

Automatically run commands on server start and reload.

·Plugin

What is StartupCommands?
StartupCommands is a simple configurable plugin that automatically runs commands on on server start. It also has the ability to run commands with an optional delay.

Why StartupCommands?
Need to run a command for another plugin or display a message to all players when the server restarts or reloads? StartupCommands can easily do that for you.

Configuration
Add commands in the configuration by following the examples provided, or follow the following example:

# Add commands below to execute on server startup/reload.
# delay is the number of seconds to wait before executing. Use 0 for immediate execution.
# notify-on-exec is a boolean value to enable/disable console notifications on command execution.
commands:
  gamemode 1 TestPlayer:
    delay: 10
    notify-on-exec: false
  ban TestPlayer:
    delay: 0
  say This is a test message with StartupCommands:
    delay: 3

Please note that normal characters that required escaping in YAML will need to be escaped in the configuration.

Commands

  • /startup help - display StartupCommands command help
  • /startup view - view the current startup commands
  • /startup add (optional delay in seconds) <command string> - add a command to the startup command list
  • /startup remove <command string> - remove a command from the startup command list
  • /startup run - manually run the startup commands in the configuration
  • /startup setdelay - set an existing command's delay in seconds

The permission required for using these commands is: startupcommands.manage

Issues and Feature Requests
If you encounter any issues with the plugin or have a suggestion for a feature, please create an Issue on GitHub if possible or leave a comment in the Discussions section here.

Similar projects

Plugin →