Advertisement
twogz

Untitled

Jul 14th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. on join:
  2. set slot 4 of player to book named "&aHosting Menu &7(Right Click)" with lore "&7Right click to get your own world!"
  3.  
  4. on first join:
  5. set {hasworld.%player%} to false
  6.  
  7. on right click:
  8. if event-item is book:
  9. if held item's name contains "&aHosting Menu &7(Right Click)":
  10. if held item's lore contains "&7Right click to get your own world!":
  11. open virtual chest inventory with size 6 named "World Hosting Control Panel" to player
  12. wait 0.6 ticks
  13. if {hasworld.%player%} is false:
  14. 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"
  15.  
  16. command /createworld:
  17. trigger:
  18. if {hasworld.%player%} is false:
  19. execute console command "/mv create %player% normal"
  20. message "&eCreating your world, please wait..."
  21. wait 5 seconds
  22. message "&aSuccess! Teleporting you to your world!"
  23. execute console command "/mv tp %player% %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement