Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- set {LobbyCompassName} to "&3LobbyCompass"
- set {LobbyCompassLore} to "&kl"
- on join:
- clear player's inventory
- wait 1 tick
- give player a compass named {LobbyCompassName} with lore {LobbyCompassLore}
- command /setlobby [<text>]:
- trigger:
- if player has permission "lobby.set" OR "lobby.*":
- if arg 1 is "lobby":
- set {LobbyLocation} to location of player
- send "&c<&4Lobby&c> Je hebt de locatie van de &4lobby &cgezet op:%nl% &4%{LobbyLocation}%"
- else:
- send "&c<&4Lobby&c> Je moet nog een lobbynaam invoeren."
- else:
- send "&c<&4Lobby&c> Je hebt geen permissies om deze command uit te voeren."
- command /clobby [<offline player>] [<text>]:
- executable by: console
- trigger:
- if arg 1 is set:
- if arg 2 is "lobby":
- teleport arg 1 to {LobbyLocation}
- command /lobby:
- trigger:
- teleport player to {LobbyLocation}
- send "&d<&5Lobby&d> &5Welkom in de lobby!"
- on rightclick:
- if player is holding a compass named {LobbyCompassName} with lore {LobbyCompassLore}:
- open chest with 1 rows named "&3LobbyCompass" to player
- format slot 0 of player with a grass block named "&5Survival" with lore "&7Survival, alleen of met vrienden!" to close then run [execute console command "/lobby %player% survival"]
- format slot 2 of player with a diamond sword named "&5Kingdom" with lore "&7Kingdom, welk kingdom wordt het sterkst?" to close then run [execute console command "/lobby %player% kingdom"]
- format slot 4 of player with a diamond block named "&5Creative" with lore "&7Creative, bouw maar los op je plot!" to close then run [execute console command "/lobby %player% creative"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement