daily pastebin goal
96%
SHARE
TWEET

Untitled

Oxalist Jan 13th, 2018 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /setspawn:
  2.     aliases: spawnset, sethub, hubset, setlobby, lobbyset
  3.     permission: spawn.setspawn
  4.     permission message: &cSorry, but you don't have permission to execute this command!
  5.     description: Set spawn at your location.
  6.     trigger:
  7.         message "&8» &7You have &eset spawn&7 at your location!"
  8.         set {spawn} to location of player
  9.  
  10. command /spawn [<player>]:
  11.     aliases: hub, lobby
  12.     permission: spawn.spawn
  13.     permission message: &cSorry, but you don't have permission to execute this command!
  14.     description: Teleport you to spawn.
  15.     trigger:
  16.         if {spawn} isn't set:
  17.             message "&4Error:&c spawn is not set!"
  18.             stop
  19.         else:
  20.             argument 1 is not set:
  21.                 teleport player to {spawn}
  22.                 message "&8» &7Teleporting...."
  23.             else:
  24.                 if sender has permission "spawn.spawn.others":
  25.                     if argument is online:
  26.                         teleport argument to {spawn}
  27.                     if sender is a player:
  28.                         message "&8» &7You have been teleported to spawn by &e%player%&7." to argument 1
  29.                     if sender is not a player:
  30.                         message "&8» &7You have been teleported to spawn by &eConsole&7." to argument 1
  31.                         teleport player to {spawn}
  32.                 else:
  33.                     message "&cSorry, but you don't have permission to execute this command!"
  34.  
  35. command /delspawn:
  36.     permission: spawn.spawn.delete
  37.     permission message: &cSorry, but you don't have permission to execute this command!
  38.     description: Unset spawn location.
  39.     trigger:
  40.         delete {spawn}
  41.         message "&8» &7You have successfully unset &espawn&7!"
  42.  
  43.  
  44.  
  45.  
  46. on first join:
  47.     teleport player to {spawn}
RAW Paste Data
Top