Your Random Command As A Dice Roll
RollCommand Skript Documentation
Purpose: Executes a randomly selected command from a comma-separated list.
Configuration (Options):
permission
: rollcommand.use
- Permission required to use the command.prefix
: &7[&bRollCommand&7]
- Prefix for command messages.debug
: false
- Set to true
to enable debug messages in the console.Command: /rollcommand [<player>] <commands>
Arguments:
[<player>]
: The target player. If omitted, the command targets the sender.<commands>
: A comma-separated list of console commands to choose from.Functionality:
rollcommand.use
permission.<commands>
argument into a list of individual commands using commas as separators.Usage Examples:
/rollcommand say Hello,say Goodbye,time set day
: Executes one of the three commands randomly./rollcommand Player1 tp 100 64 100,say Player1 has been teleported
: Executes one of the two commands randomly targeting Player1.Debug Mode:
debug
is set to true
, the following information is sent to the console: