Advertisement
twogz

Untitled

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