Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /join [<text>]:
- trigger:
- if arg 1 is not set:
- send message "&cYou haven't entered a world name!"
- else if arg 1 parsed as world is not set:
- send message "&bNo world found! Please try again!"
- execute console command "mvload %arg 1%"
- else if arg 1 is "world", "spawn" or "lobby":
- send message "&cYou're forbidden to join that world!"
- else:
- if {wlocale} is 1:
- if {whitelist.%arg 1%} is true:
- send message "&cYou cannot join that world!"
- send message "&cWhitelist is active!"
- else if {banned.%arg 1%.%player%} is true:
- send message "&cYou cannot join that world!"
- send message "&cYou have been banned.."
- else:
- send message "&3Sending you to the world &b%arg 1%&3!"
- execute console command "mv tp %player% %arg 1%"
- #teleport player to spawn of arg 1 parsed as world
- broadcast "&b%player% &ejoined the world!" in arg 1 parsed as world
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement