Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- set slot 4 of player to book named "&aHosting Menu &7(Right Click)" with lore "&7Right click to get your own world!"
- on first join:
- set {hasworld.%player%} to false
- open virtual chest inventory with size 6 named "World Hosting Control Panel" to player
- wait 0.6 ticks
- if {hasworld.%player%} is false:
- create a gui slot 13 of player with paper named "&aCreate a New World" with lore "&r ||&7Get your free world!||&r ||&eLeft click to execute" to run player command "createworld"
- if {hasworld.%player%} is true:
- create a gui slot 13 of player with emerald named "&aGo to your World" with lore "&r ||&7Teleport to your world!||&r ||&eLeft click to execute" to run player command "tpworld"
- on right click:
- if event-item is book:
- if held item's name contains "&aHosting Menu &7(Right Click)":
- if held item's lore contains "&7Right click to get your own world!":
- open virtual chest inventory with size 6 named "World Hosting Control Panel" to player
- wait 0.6 ticks
- if {hasworld.%player%} is false:
- create a gui slot 13 of player with paper named "&aCreate a New World" with lore "&r ||&7Get your free world!||&r ||&eLeft click to execute" to run player command "createworld"
- if {hasworld.%player%} is true:
- create a gui slot 13 of player with emerald named "&aGo to your World" with lore "&r ||&7Teleport to your world!||&r ||&eLeft click to execute" to run player command "tpworld"
- command /createworld:
- trigger:
- if {hasworld.%player%} is false:
- execute console command "/mv create %player% normal"
- message "&eCreating your world, please wait..."
- set {hasworld.%player%} to true
- wait 5 seconds
- message "&aSuccess! Teleporting you to your world!"
- execute console command "/mv tp %player% %player%"
- command /tpworld:
- trigger:
- if {hasworld.%player%} is true:
- execute console command "/mv tp %player% %player%"
- message "&aTeleporting you to your world..."
- command /reset:
- trigger:
- set {hasworld.%player%} to false
- command /warp [<text>]:
- trigger:
- if arg 1 is not set:
- message "&cUsage: /warp <player>"
- else:
- execute console command "/mv tp %player% %arg 1%"
- message "&dTeleporting you to %arg 1%'s world!"
- set player's gamemode to survival
- every real minute:
- broadcast "&dWant to visit your friend's world? Run /warp <player> to go there!"
- command /gmc [<text>]:
- if player's world is "%player%":
- if arg 1 is not set:
- set player's gamemode to creative
- message "&aYour gamemode has been set to Creative!"
- else:
- set arg 1's gamemode to creative
- message "&aYou set %player%'s gamemode has been set to Creative!"
- else:
- message "&cYou can only use this command in your own world!"
- command /gms [<text>]:
- if player's world is "%player%":
- if arg 1 is not set:
- set player's gamemode to survival
- message "&aYour gamemode has been set to Survival!"
- else:
- set arg 1's gamemode to survival
- message "&aYou set %player%'s gamemode has been set to Survival!"
- else:
- message "&cYou can only use this command in your own world!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement