Advertisement
twogz

Untitled

Jul 14th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 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. teleport player to {spawn}
  4.  
  5. command /setspawn:
  6. trigger:
  7. if player has permission "*":
  8. set {spawn} to location of player
  9.  
  10. on right click:
  11. if event-item is book:
  12. if held item's name contains "&aHosting Menu &7(Right Click)":
  13. if held item's lore contains "&7Right click to get your own world!":
  14. open virtual chest inventory with size 6 named "World Hosting Control Panel" to player
  15. wait 0.6 ticks
  16. if {hasworld.%player%} is false:
  17. 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"
  18. if {hasworld.%player%} is true:
  19. 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"
  20.  
  21. command /createworld:
  22. trigger:
  23. if {hasworld.%player%} is false:
  24. execute console command "/mv create %player% normal"
  25. message "&eCreating your world, please wait..."
  26. set {hasworld.%player%} to true
  27. wait 5 seconds
  28. message "&aSuccess! Teleporting you to your world!"
  29. execute console command "/mv tp %player% %player%"
  30.  
  31. command /tpworld:
  32. trigger:
  33. if {hasworld.%player%} is true:
  34. execute console command "/mv tp %player% %player%"
  35. message "&aTeleporting you to your world..."
  36.  
  37. command /reset:
  38. trigger:
  39. set {hasworld.%player%} to false
  40.  
  41. command /warp [<text>]:
  42. trigger:
  43. if arg 1 is not set:
  44. message "&cUsage: /warp <player>"
  45. else:
  46. execute console command "/mv tp %player% %arg 1%"
  47. message "&dTeleporting you to %arg 1%'s world!"
  48. set player's gamemode to survival
  49.  
  50. every real minute:
  51. broadcast "&dWant to visit your friend's world? Run /warp <player> to go there!"
  52.  
  53. on build:
  54. if player's world is "world":
  55. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement