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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement