Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /setarena:
- permission: arena.setspawn
- permission message: &cSorry, but you don't have permission to execute this command!
- description: Set the arena at your location.
- trigger:
- message "&8» &7You have &eset the arena&7 at your location!"
- set {arena} to location of player
- command /arena [<player>]:
- permission: arena.spawn
- permission message: &cSorry, but you don't have permission to execute this command!
- description: Teleport you to the arena.
- trigger:
- if {arena} isn't set:
- message "&4Error:&c the arena is not set!"
- stop
- else:
- argument 1 is not set:
- teleport player to {arena}
- message "&8» &7Teleporting...."
- else:
- if sender has permission "spawn.spawn.others":
- if argument is online:
- teleport argument to {arena}
- if sender is a player:
- message "&8» &7You have been teleported to the arena by &e%player%&7." to argument 1
- if sender is not a player:
- message "&8» &7You have been teleported to the arena by &eConsole&7." to argument 1
- teleport player to {arena}
- else:
- message "&cSorry, but you don't have permission to execute this command!"
- command /delarena:
- permission: arena.delete
- permission message: &cSorry, but you don't have permission to execute this command!
- description: Unset the arena location.
- trigger:
- delete {arena}
- message "&8» &7You have successfully unset ðe arena&7!"
Advertisement
Add Comment
Please, Sign In to add comment