Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /join [<text>]:
  2.     trigger:
  3.         if arg 1 is not set:
  4.             send message "&cYou haven't entered a world name!"
  5.         else if arg 1 parsed as world is not set:
  6.             send message "&bNo world found! Please try again!"
  7.             execute console command "mvload %arg 1%"
  8.         else if arg 1 is "world", "spawn" or "lobby":
  9.             send message "&cYou're forbidden to join that world!"
  10.         else:
  11.             if {wlocale} is 1:
  12.                 if {whitelist.%arg 1%} is true:
  13.                     send message "&cYou cannot join that world!"
  14.                     send message "&cWhitelist is active!"
  15.                 else if {banned.%arg 1%.%player%} is true:
  16.                     send message "&cYou cannot join that world!"
  17.                     send message "&cYou have been banned.."
  18.                 else:
  19.                     send message "&3Sending you to the world &b%arg 1%&3!"
  20.                    
  21.                     execute console command "mv tp %player% %arg 1%"
  22.                     #teleport player to spawn of arg 1 parsed as world
  23.                    
  24.                     broadcast "&b%player% &ejoined the world!" in arg 1 parsed as world
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement