Oxalist

Untitled

Jan 13th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. command /setarena:
  2. permission: arena.setspawn
  3. permission message: &cSorry, but you don't have permission to execute this command!
  4. description: Set the arena at your location.
  5. trigger:
  6. message "&8» &7You have &eset the arena&7 at your location!"
  7. set {arena} to location of player
  8.  
  9. command /arena [<player>]:
  10. permission: arena.spawn
  11. permission message: &cSorry, but you don't have permission to execute this command!
  12. description: Teleport you to the arena.
  13. trigger:
  14. if {arena} isn't set:
  15. message "&4Error:&c the arena is not set!"
  16. stop
  17. else:
  18. argument 1 is not set:
  19. teleport player to {arena}
  20. message "&8» &7Teleporting...."
  21. else:
  22. if sender has permission "spawn.spawn.others":
  23. if argument is online:
  24. teleport argument to {arena}
  25. if sender is a player:
  26. message "&8» &7You have been teleported to the arena by &e%player%&7." to argument 1
  27. if sender is not a player:
  28. message "&8» &7You have been teleported to the arena by &eConsole&7." to argument 1
  29. teleport player to {arena}
  30. else:
  31. message "&cSorry, but you don't have permission to execute this command!"
  32.  
  33. command /delarena:
  34. permission: arena.delete
  35. permission message: &cSorry, but you don't have permission to execute this command!
  36. description: Unset the arena location.
  37. trigger:
  38. delete {arena}
  39. message "&8» &7You have successfully unset &ethe arena&7!"
Advertisement
Add Comment
Please, Sign In to add comment