Advertisement
twogz

Untitled

Jul 14th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 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. open virtual chest inventory with size 6 named "World Hosting Control Panel" to player
  7. wait 0.6 ticks
  8. if {hasworld.%player%} is false:
  9. 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"
  10. if {hasworld.%player%} is true:
  11. 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"
  12.  
  13. on right click:
  14. if event-item is book:
  15. if held item's name contains "&aHosting Menu &7(Right Click)":
  16. if held item's lore contains "&7Right click to get your own world!":
  17. open virtual chest inventory with size 6 named "World Hosting Control Panel" to player
  18. wait 0.6 ticks
  19. if {hasworld.%player%} is false:
  20. 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"
  21. if {hasworld.%player%} is true:
  22. 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"
  23.  
  24. command /createworld:
  25. trigger:
  26. if {hasworld.%player%} is false:
  27. execute console command "/mv create %player% normal"
  28. message "&eCreating your world, please wait..."
  29. set {hasworld.%player%} to true
  30. wait 5 seconds
  31. message "&aSuccess! Teleporting you to your world!"
  32. execute console command "/mv tp %player% %player%"
  33.  
  34. command /tpworld:
  35. trigger:
  36. if {hasworld.%player%} is true:
  37. execute console command "/mv tp %player% %player%"
  38. message "&aTeleporting you to your world..."
  39.  
  40. command /reset:
  41. trigger:
  42. set {hasworld.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement