Broadcast Command
broadcast.sk
command /broadcast <text>:
permission: broadcast.use
permisison message: &cYou don't have permission!
trigger:
broadcast colored arg-1
With Comments
broadcast.sk
# Create a new command named 'broadcast'
# Give it a text argument.
# The argument is required meaning that the skript will send
# an error message if it is not included.
command /broadcast <text>:
# Only players that have the permission 'broadcast.use'
# can use this command.
permission: broadcast.use
# If the player does not have permission, then this
# message is sent to them.
permisison message: &cYou don't have permission!
# Now let's tell skript what the command should do when
# we run it.
trigger:
# Broadcasts the first argument of the command with
# color codes.
broadcast colored arg-1
Last updated