ArtzifyHD

BungeeWorld

Jul 28th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. command /bungeeworlds [<text>] [<text>]:
  2. aliases: /bungee, /bg
  3. permission: bg.use
  4. trigger:
  5. if arg 1 is "help":
  6. send "&6&l&m-----&3&l BungeeWorlds &6&l&m-----"
  7. send ""
  8. send " &c&l&m--&3&l Help &a- wiew help/command list"
  9. send " &c&l&m--&3&l Create &a- Create a server/world"
  10. if {bg.gadgets.settings} is set:
  11. send " &c&l&m--&3&l &aSettings &a- Wiew a menu with settings for your world/server"
  12. else:
  13. send " &c&l&m--&3&l &cSettings &a- Wiew a menu with settings for your world/server&c(Download a gadget)"
  14. send " &c&l&m--&3&l Gadgets &a- Wiew a list with installed gadgets, or not installed"
  15. send " &c&l&m--&3&l Remove &a- Remove a server/world"
  16. send " &c&l&m--&3&l info &a- Wiew a info list"
  17. send ""
  18. send "&6&l&m------------------------"
  19. if arg 1 is not set:
  20. send "&6&l&m-----&3&l BungeeWorlds &6&l&m-----"
  21. send ""
  22. send " &c&l&m--&3&l Help &a- wiew help/command list"
  23. send " &c&l&m--&3&l Create &a- Create a server/world"
  24. if {bg.gadgets.settings} is set:
  25. send " &c&l&m--&3&l &aSettings &a- Wiew a menu with settings for your world/server"
  26. else:
  27. send " &c&l&m--&3&l &cSettings &a- Wiew a menu with settings for your world/server&c(Download a gadget)"
  28. send " &c&l&m--&3&l Gadgets &a- Wiew a list with installed gadgets, or not installed"
  29. send " &c&l&m--&3&l Remove &a- Remove a server/world"
  30. send " &c&l&m--&3&l info &a- Wiew a info list"
  31. send ""
  32. send "&6&l&m------------------------"
  33. if arg 1 is "info":
  34. send "&3&l&m---------------------------------"
  35. send " &aName of skript: &3&l&nBungeeWorlds"
  36. send " &aAuthor of skript: &3&l&nIlusionMan"
  37. send " &aAuthor of gadgets: &3&l&nlets11231"
  38. send " &aLanguage: &3&lEN"
  39. send "&3&l&m---------------------------------"
  40. if arg 1 is "create":
  41. if arg 2 is set:
  42. if {bw.server.%arg 2%} is not set:
  43. send "&aI create a settings for &3&l%arg 2%&a..."
  44. wait 1 seconds
  45. send "&3&lWait &a5"
  46. wait 1 seconds
  47. send "&3&lWait &a4"
  48. wait 1 seconds
  49. send "&3&lWait &a3"
  50. wait 1 seconds
  51. send "&3&lWait &42"
  52. wait 1 seconds
  53. send "&3&lWait &c1"
  54. send "&aServer settings for &3&l%arg 2%&a created"
  55. open chest with 3 rows named "&3&lSelectAType" to player
  56. format slot 4 of player with redstone named "&aWhat type for &3&l%arg 2%&a?" to be unstealable
  57. format slot 11 of player with grass named "&3&lFlat" to close then run [make player execute command "/bg_flag_Create %arg 2%"]
  58. format slot 15 of player with grass named "&3&lNormal" to close then run [make player execute command "/bg_norml_Create %arg 2%"]
  59. format slot 26 of player with red glass named "&c&lClose" with lore "&4&lTo close menu" to close
  60. else:
  61. send "&c&lServer &4&l&n%arg 2%&c&l is created!!"
  62. else:
  63. send "&c&lPlease write a &4&lSERVER!"
  64. if arg 1 is "settings":
  65. if {bg.gadgets.settings} is set:
  66. make player execute command "/bggs"
  67. else:
  68. send "&aOh no! you not downloaded a &c&l&ngadget&a for this!"
  69. if arg 1 is "gadgets" or "gadget":
  70. open chest with 3 rows named "&3&lGadgets" to player
  71. if {bg.gadgets.settings} is set:
  72. format slot 0 of player with glowing emerald block named "&a&lSettings" with lore "||&aDownloaded!|| &3&lCommands|| &6&l&m--&a/bungee settings" to be unstealable
  73. else:
  74. format slot 0 of player with coal block named "&c&lSettings" with lore "||&cNot downloaded" to be unstealable
  75. if {bg.gadgets.chat} is set:
  76. format slot 1 of player with glowing emerald block named "&a&lChat" with lore "||&aDownloaded!|| &3&lCommands|| &6&l&m--&c&l Not commands" to be unstealable
  77. else:
  78. format slot 1 of player with coal block named "&c&lChat" with lore "||&cNot downloaded" to be unstealable
  79. if {bg.gadgets.join} is set:
  80. format slot 2 of player with glowing emerald block named "&a&lJoin" with lore "||&aDownloaded!|| &3&lCommands|| &6&l&m--&a /server" to be unstealable
  81. else:
  82. format slot 2 of player with coal block named "&c&lJoin" with lore "||&cNot downloaded" to be unstealable
  83. if {bg.gadgets.gamerule} is set:
  84. format slot 3 of player with glowing emerald block named "&a&lGamerule" with lore "||&aDownloaded!|| &3&lCommands|| &6&l&m--&a /sgamerule" to be unstealable
  85. else:
  86. format slot 3 of player with coal block named "&c&lGamerule" with lore "||&cNot downloaded" to be unstealable
  87. if arg 1 is "remove":
  88. if arg 2 is set:
  89. if {bw.server.%arg 2%} is set:
  90. send "&aRemoving server &3&l%arg 2%"
  91. delete {bw.server.%arg 2%}
  92. remove arg 2 from {bw.servers::*}
  93. make console execute command "/mv remove %arg 2%"
  94. make console execute command "/mv delete %arg 2%"
  95. make console execute command "/mvconfirm"
  96. send "&aServer &3&l%arg 2%&a removed"
  97. else:
  98. send "&c&lThis server is not existed!"
  99. else:
  100. send "&c&lPlease write a &4&lSERVER!"
  101. command /bg_flag_Create [<text>]:
  102. trigger:
  103. send "&aWait i create a world for &3&l%arg 1%"
  104. make console execute command "/mv create %arg 1% normal -t flat"
  105. send "&aServer &3&l%arg 1% &acreated!"
  106. wait 20 tick
  107. send "&aJoining you to &3&l%arg 1%"
  108. make console execute command "/mv tp %player% %arg 1%"
  109. wait 20 tick
  110. set {bw.server.%arg 1%} to location of player
  111. add arg 1 to {bw.servers::*}
  112. command /bg_norml_Create [<text>]:
  113. trigger:
  114. send "&aWait i create a world for &3&l%arg 1%"
  115. make console execute command "/mv create %arg 1% normal"
  116. send "&aServer &3&l%arg 1% &acreated!"
  117. wait 20 tick
  118. send "&aJoining you to &3&l%arg 1%"
  119. make console execute command "/mv tp %player% %arg 1%"
  120. wait 20 tick
  121. set {bw.server.%arg 1%} to location of player
  122. add arg 1 to {bw.servers::*}
Advertisement
Add Comment
Please, Sign In to add comment