Advertisement
twogz

Untitled

Jul 14th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 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
  43.  
  44. command /warp [<text>]:
  45. trigger:
  46. if arg 1 is not set:
  47. message "&cUsage: /warp <player>"
  48. else:
  49. execute console command "/mv tp %player% %arg 1%"
  50. message "&dTeleporting you to %arg 1%'s world!"
  51. set player's gamemode to survival
  52.  
  53. every real minute:
  54. broadcast "&dWant to visit your friend's world? Run /warp <player> to go there!"
  55.  
  56. command /gmc [<text>]:
  57. if player's world is "%player%":
  58. if arg 1 is not set:
  59. set player's gamemode to creative
  60. message "&aYour gamemode has been set to Creative!"
  61. else:
  62. set arg 1's gamemode to creative
  63. message "&aYou set %player%'s gamemode has been set to Creative!"
  64. else:
  65. message "&cYou can only use this command in your own world!"
  66.  
  67. command /gms [<text>]:
  68. if player's world is "%player%":
  69. if arg 1 is not set:
  70. set player's gamemode to survival
  71. message "&aYour gamemode has been set to Survival!"
  72. else:
  73. set arg 1's gamemode to survival
  74. message "&aYou set %player%'s gamemode has been set to Survival!"
  75. else:
  76. message "&cYou can only use this command in your own world!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement