Advertisement
twogz

Untitled

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