Oxalist

Untitled

Feb 7th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.91 KB | None | 0 0
  1. variables:
  2. {world.%player%} = "False"
  3. {world::list} = 0
  4. {worlds::list::list} = "None"
  5. {time.%player%} = "False"
  6. {pvp.%player%} = "False"
  7. {mobs.%player%} = "False"
  8. {mobsgriefing.%player%} = "False"
  9. {animals.%player%} = "False"
  10.  
  11. on quit:
  12. if {world.%player%} is "True":
  13. remove 1 from {world::list}
  14. if {world.%player%} is "False":
  15. stop
  16.  
  17. command /stop:
  18. trigger:
  19. set {world::list} to 0
  20.  
  21. on skript stop:
  22. make console execute "world worlds"
  23.  
  24.  
  25.  
  26. command /timeworld:
  27. trigger:
  28. if {time.%player%} is "False":
  29. send "&8» &7You have set the time to &eday" to player
  30. make console execute command "time set day world-%player%"
  31. set {time.%player%} to "True"
  32. stop
  33. if {time.%player%} is "True":
  34. send "&8» &7You have set the time to &enight" to player
  35. make console execute command "time set night world-%player%"
  36. delete {time.%player%}
  37. stop
  38. command /pvpworld:
  39. trigger:
  40. if {pvp.%player%} is "False":
  41. send "&8» &7Pvp has been enabled" to player
  42. make console execute command "mv modify set pvp true world-%player%"
  43. set {pvp.%player%} to "True"
  44. stop
  45. if {pvp.%player%} is "True":
  46. send "&8» &7Pvp has been disabled" to player
  47. make console execute command "mv modify set pvp false world-%player%"
  48. delete {pvp.%player%}
  49. stop
  50. command /mobsworld:
  51. trigger:
  52. if {mobs.%player%} is "False":
  53. send "&8» &7Mob spawning has been enabled" to player
  54. make console execute command "mv modify set monsters true world-%player%"
  55. set {mobs.%player%} to "True"
  56. stop
  57. if {mobs.%player%} is "True":
  58. send "&8» &7Mob spawning has been disabled" to player
  59. make console execute command "mv modify set monsters false world-%player%"
  60. delete {mobs.%player%}
  61. stop
  62. command /animalsworld:
  63. trigger:
  64. if {animals.%player%} is "False":
  65. send "&8» &7Animal spawning has been enabled" to player
  66. make console execute command "mv modify set animals true world-%player%"
  67. set {animals.%player%} to "True"
  68. stop
  69. if {animals.%player%} is "True":
  70. send "&8» &7Animal spawning has been disabled" to player
  71. make console execute command "mv modify set animals false world-%player%"
  72. delete {animals.%player%}
  73. stop
  74. command /mobsgriefingworld:
  75. trigger:
  76. if {mobsgriefing.%player%} is "False":
  77. send "&8» &7Mob griefing has been enabled" to player
  78. make console execute command "mv gamerule mobGriefing true world-%player%"
  79. set {mobsgriefing.%player%} to "True"
  80. stop
  81. if {mobsgriefing.%player%} is "True":
  82. send "&8» &7Mob griefing has been disabled" to player
  83. make console execute command "mv gamerule mobGriefing false world-%player%"
  84. delete {mobsgriefing.%player%}
  85. stop
  86.  
  87. command /spawn:
  88. trigger:
  89. set the player's gamemode to survival
  90. send "&8» &7Sent you to the spawn"
  91. teleport player to {spawn}
  92. remove player from {worlds::list::list}
  93. remove 1 from {world::list}
  94. remove 1 clock named "&b&lWorld Manager &8[&e%player%&8]" with lore "&8» &7Right click to open the world manager" from player
  95.  
  96. on walking on black concrete:
  97. make player execute command "/world create"
  98.  
  99. on rightclick:
  100. player is holding clock named "&b&lWorld Manager &8[&e%player%&8]" with lore "&8» &7Right click to open the world manager"
  101. make player execute command "/world"
  102.  
  103.  
  104. command /world [<text>] [<offlineplayer>]:
  105. permission: world.world
  106. trigger:
  107. if arg 1 is not set:
  108. if arg 2 is not set:
  109. open chest with 3 row named "&8» &7World Managment" to player
  110. wait 5 tick
  111. format slot 0 of player with gray glass pane named "" to be unstealable
  112. format slot 1 of player with gray glass pane named "" to be unstealable
  113. format slot 2 of player with gray glass pane named "" to be unstealable
  114. format slot 3 of player with gray glass pane named "" to be unstealable
  115. format slot 4 of player with barrier named "&8» &7Reset your private world" with lore "" to close then run [player command "world reset"]
  116. format slot 5 of player with gray glass pane named "" to be unstealable
  117. format slot 6 of player with gray glass pane named "" to be unstealable
  118. format slot 7 of player with gray glass pane named "" to be unstealable
  119. format slot 8 of player with gray glass pane named "" to be unstealable
  120. format slot 9 of player with compass named "&8» &7Create a private world" with lore "" to close then run [player command "world create"]
  121. format slot 10 of player with ender pearl named "&8» &7Teleport to your world spawn" with lore "" to close then run [player command "world teleport"]
  122. format slot 11 of player with grass named "&8» &7Set spawn" with lore "" to close then run [player command "world setspawn"]
  123. format slot 12 of player with clock named "&8» &7Time night/day" with lore "" to close then run [player command "timeworld"]
  124. format slot 13 of player with diamond sword named "&8» &7Pvp enable/disable" with lore "" to close then run [player command "pvpworld"]
  125. format slot 14 of player with spawn egg named "&8» &7Mob spawning enable/disable" with lore "" to close then run [player command "mobsworld"]
  126. format slot 15 of player with tnt named "&8» &7Mob griefing enable/disable" with lore "" to close then run [player command "mobsgriefingworld"]
  127. format slot 16 of player with steak named "&8» &7Animals spawning enable/disable" with lore "" to close then run [player command "animalsworld"]
  128. format slot 18 of player with gray glass pane named "" to be unstealable
  129. format slot 19 of player with gray glass pane named "" to be unstealable
  130. format slot 20 of player with gray glass pane named "" to be unstealable
  131. format slot 21 of player with gray glass pane named "" to be unstealable
  132. format slot 22 of player with gray glass pane named "" to be unstealable
  133. format slot 23 of player with gray glass pane named "" to be unstealable
  134. format slot 24 of player with gray glass pane named "" to be unstealable
  135. format slot 25 of player with gray glass pane named "" to be unstealable
  136. format slot 26 of player with gray glass pane named "" to be unstealable
  137. if arg 1 is "create":
  138. if {world.%player%} is "True":
  139. send "&8» &7You already have a private world"
  140. stop
  141. set {world.%player%} to "True"
  142. add player to {worlds::list::list}
  143. add 1 to {world::list}
  144. send "&8» &7Generating your private world..... &8[&a14%%&8]"
  145. wait 1 second
  146. send "&8» &7Generating your private world..... &8[&a35%%&8]"
  147. wait 1 second
  148. send "&8» &7Generating your private world..... &8[&a56%%&8]"
  149. wait 1 second
  150. send "&8» &7Generating your private world..... &8[&a72%%&8]"
  151. wait 1 second
  152. send "&8» &7Generating your private world..... &8[&a86%%&8]"
  153. wait 1 second
  154. send "&8» &7Generating your private world..... &8[&a94%%&8]"
  155. wait 1 second
  156. send "&8» &7Generating your private world..... &8[&a100%%&8]"
  157. wait 1 second
  158. make console execute command "/mv create world-%player% normal -t flat"
  159. make console execute command "/mv confirm"
  160. make console execute command "/mv tp %player% world-%player%"
  161. set slot 0 of player to clock named "&b&lWorld Manager &8[&e%player%&8]" with lore "&8» &7Right click to open the world manager"
  162. set the player's gamemode to creative
  163. wait 2 seconds
  164. set {spawn.%player%} to location of player
  165. if arg 1 is "reset":
  166. if {world.%player%} is "False":
  167. send "&8» &7You do not have a world to reset"
  168. stop
  169. remove 1 from {world::list}
  170. remove player from {worlds::list::list}
  171. set {world.%player%} to "False"
  172. send "&8» &7Resetting your private world..... &8[&a14%%&8]"
  173. wait 1 second
  174. send "&8» &7Resetting your private world..... &8[&a35%%&8]"
  175. wait 1 second
  176. send "&8» &7Resetting your private world..... &8[&a56%%&8]"
  177. wait 1 second
  178. send "&8» &7Resetting your private world..... &8[&a72%%&8]"
  179. wait 1 second
  180. send "&8» &7Resetting your private world..... &8[&a86%%&8]"
  181. wait 1 second
  182. send "&8» &7Resetting your private world..... &8[&a94%%&8]"
  183. wait 1 second
  184. send "&8» &7Resetting your private world..... &8[&a100%%&8]"
  185. wait 1 second
  186. make console execute command "/mv delete world-%player%"
  187. make console execute command "/mv confirm"
  188. delete {spawn.%player%}
  189. teleport player to {spawn}
  190. set the player's gamemode to survival
  191. remove 1 clock named "&b&lWorld Manager &8[&e%player%&8]" with lore "&8» &7Right click to open the world manager" from player
  192. set {world.%player%} to "False"
  193. if arg 1 is "tp" or "teleport":
  194. if arg 2 is not set:
  195. if {world.%player%} is "False":
  196. send "&8» &7You do not have a private world"
  197. stop
  198. set the player's gamemode to creative
  199. add player to {worlds::list::list}
  200. add 1 to {world::list}
  201. set slot 0 of player to clock named "&b&lWorld Manager &8[&e%player%&8]" with lore "&8» &7Right click to open the world manager"
  202. send "&8» &7Welcome back to your private world"
  203. teleport player to {spawn.%player%}
  204. if arg 1 is "tp" or "teleport":
  205. if arg 2 is set:
  206. if {locked.world.%arg 2%} is "True":
  207. send "&8» &7That player has locked there world"
  208. stop
  209. if {world.%arg 2%} is "False":
  210. send "&8» &7That player does not have a world"
  211. stop
  212. remove 1 from {world::list}
  213. set the player's gamemode to adventure
  214. remove player from {worlds::list::list}
  215. remove 1 clock named "&b&lWorld Manager &8[&e%player%&8]" with lore "&8» &7Right click to open the world manager" from player
  216. send "&8» &7You have teleport to &e%arg 2%'s &7world"
  217. teleport player to {spawn.%arg 2%}
  218. if arg 1 is "lock":
  219. if {world.%player%} is "False":
  220. send "&8» &7You do not have a private world"
  221. stop
  222. send "&8» &7You have locked your private world"
  223. set {locked.world.%player%} to "True"
  224. if arg 1 is "unlock":
  225. if {world.%player%} is "False":
  226. send "&8» &7You do not have a private world"
  227. stop
  228. send "&8» &7You have unlocked your private world"
  229. set {locked.world.%player%} to "False"
  230. if arg 1 is "worlds":
  231. send "&8» &7You have reset the worlds list scoreboard"
  232. set {world::list} to 0
  233. if arg 1 is "setspawn":
  234. if {world.%player%} is "False":
  235. send "&8» &7You do not have a world to setspawn"
  236. if the player's world is "world-%player%":
  237. send "&8» &7You have set your world spawn"
  238. set {spawn.%player%} to location of player
  239. if the player's is not "world-%player%":
  240. send "&8» &7You have to be in your own world to setspawn"
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252. options:
  253. # Scoreboard
  254. Title: &a &8🡺 &e&lSKYLINE &8🡸 &7
  255.  
  256. # The lines, you can use %{rank.%loop-player%}% for the users group, %balance of loop-player% for their balance, and %player% for their name.
  257. Line1: &f
  258. Line2: &8» &7Rank: &c[W.I.P]
  259. Line3: &8» &7Name: &e%loop-player%
  260. Line4: &b
  261. Line5: &8» &7Credits: &e%{credits::%loop-player%}%
  262. Line6: &8» &7Worlds: &e%{world::list}%
  263. Line7: &d
  264. Line8: &8» &7IP: &eSkyline.minehut.gg
  265. Line9: &3
  266.  
  267. #ScoreBoard (You can add lines)
  268. every second:
  269. loop all players:
  270. wipe loop-player's sidebar
  271. set name of sidebar of loop-player to "{@Title}"
  272. set score "{@Line1}" in sidebar of loop-player to 9
  273. set score "{@Line2}" in sidebar of loop-player to 8
  274. set score "{@Line3}" in sidebar of loop-player to 7
  275. set score "{@Line4}" in sidebar of loop-player to 6
  276. set score "{@Line5}" in sidebar of loop-player to 5
  277. set score "{@Line6}" in sidebar of loop-player to 4
  278. set score "{@Line7}" in sidebar of loop-player to 3
  279. set score "{@Line8}" in sidebar of loop-player to 2
  280. set score "{@Line9}" in sidebar of loop-player to 1
  281.  
  282. command /staff:
  283. description: Shows online staff
  284. trigger:
  285. loop all players:
  286. loop-player has permission "staff.list"
  287. add loop-player to {_online staff::*}
  288.  
  289. size of {_online staff::*} is 0:
  290. message "&8» &7There are no staff currently online! Happy griefing ;)"
  291. else:
  292. message "&8» &7Online staff: &e%{_online staff::*}%"
Advertisement
Add Comment
Please, Sign In to add comment