NAOSAMA

Untitled

Mar 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.28 KB | None | 0 0
  1. options:
  2. Version: 1.3
  3.  
  4. #==================================================================#
  5. #============================== C O M M A N D S =====================#
  6. #==================================================================#
  7.  
  8. #===========================================================#
  9. command /debugsclear [<offline player>]:
  10. permission: *
  11. trigger:
  12. delete {Searchis.%arg-1%}
  13. send "&c&o%arg-1%'s cleared"
  14. #===========================================================#
  15. command /island [<text>] [<text=1>]:
  16. aliases: /is
  17. trigger:
  18. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  19. if arg-1 is not set:
  20. islandgui(player)
  21. if arg-1 is "create":
  22. if file "plugins/SkyBlock/Player/%player%.yml" exists:
  23. set {_a} to yaml value "alreadyisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  24. evaluate "send ""%{_prefix}% %{_a}%"""
  25. stop
  26. set {_schematics::*} to files in "plugins/SkyBlock/schematics"
  27. if size of {_schematics::*} is 1:
  28. set {_bla} to true
  29. set {_path} to "plugins/SkyBlock/schematics/%{_schematics::*}%"
  30. if {_bla} is not set:
  31. if arg-2 is "1":
  32. open chest with 1 rows named "&6Schematics" to player
  33. set {_s} to 0
  34. loop {_schematics::*}:
  35. set {_b} to loop-value
  36. set {_Bla::*} to {_b} split at "."
  37. set slot {_s} of player's current inventory to grass block named "%{_bla::1}%"
  38. add 1 to {_s}
  39. delete {_s}
  40. delete {_Bla::*}
  41. stop
  42. else:
  43. if file "plugins/SkyBlock/schematics/%arg-2%.schematic" exists:
  44. set {_path} to "plugins/SkyBlock/schematics/%arg-2%.schematic"
  45. else:
  46. send "&c&lError"
  47. stop
  48. if {Searchis.%player%} is set:
  49. set {_a} to yaml value "waitingisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  50. evaluate "send ""%{_prefix}% %{_a}%"""
  51. stop
  52. else:
  53. set {Searchis.%player%} to true
  54. apply blindness to player for 10 seconds
  55. apply slowness to player for 10 seconds
  56. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  57. set {_option2} to yaml value "options.height" from file "plugins/SkyBlock/config.yml"
  58. set {_loc} to location (0.5, {_option2} parsed as number, 0.5) in world "%{_option1}%"
  59. set {_search} to true
  60. set {_s} to 1
  61. set {_l} to 1
  62. set {_option3} to yaml value "options.distance" from file "plugins/SkyBlock/config.yml"
  63. set {_option3} to {_option3} parsed as number
  64. while {_search} is true:
  65. loop {_l} times:
  66. if {_s} is 1 or 5:
  67. add ({_option3}*2) to Z-coord of {_loc}
  68. if {_s} is 2:
  69. add ({_option3}*2) to X-coord of {_loc}
  70. if {_s} is 3:
  71. subtract ({_option3}*2) from Z-coord of {_loc}
  72. if {_s} is 4:
  73. subtract ({_option3}*2) from X-coord of {_loc}
  74. if block at {_loc} is not bedrock:
  75. set {_a} to yaml value "foundisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  76. evaluate "send ""%{_prefix}% %{_a}%"""
  77. delete {Searchis.%player%}
  78. add 1 to y-coord of {_loc}
  79. set {_session} to new editsession in player's world with limit -1
  80. paste schematic "%{_path}%" at {_loc} using editsession {_session}
  81. subtract 1 from y-coord of {_loc}
  82. if block at {_loc} is not bedrock:
  83. send "&c&lSchematic error - No bedrock - %arg-2%.schematic" to all ops
  84. send "&c&oOps...there might wrong"
  85. send "&c&oPlease contract an administrator."
  86. stop
  87. set {_b} to block at {_loc}
  88. set {_pis} to {_loc}
  89. add 1 to y-coord of {_pis}
  90. delete {_search}
  91. teleport player to {_pis}
  92. remove blindness from player
  93. remove slowness from player
  94. set {_l::1} to {_loc}
  95. set {_l::2} to {_loc}
  96. set {_option4} to yaml value "options.protect" from file "plugins/SkyBlock/config.yml"
  97. set {_option4} to {_option4} parsed as number
  98. add ({_option3} - {_option4}) to x-coord of {_l::1}
  99. add ({_option3} - {_option4}) to z-coord of {_l::1}
  100. subtract ({_option3} - {_option4}) from x-coord of {_l::2}
  101. subtract ({_option3} - {_option4}) from z-coord of {_l::2}
  102. set y-coord of {_l::1} to 256
  103. set y-coord of {_l::2} to 0
  104. set {_x} to x-coord of {_loc}
  105. set {_y} to y-coord of {_loc}
  106. set {_z} to z-coord of {_loc}
  107. set yaml value "Leader" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml" to "%player%"
  108. set yaml value "Other.Island.Level" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml" to "1"
  109. set yaml value "Other.Island.EXP" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml" to "0"
  110. set yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_x}%"
  111. set yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_y}%"
  112. set yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_z}%"
  113. add 1 to y-coord of {_loc}
  114. set {_y} to y-coord of {_loc}
  115. set yaml value "Other.Home.X" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_x}%"
  116. set yaml value "Other.Home.Y" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_Y}%"
  117. set yaml value "Other.Home.Z" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_Z}%"
  118. set yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml" to "%player%"
  119. #subtract 0.5 from x-coord of {_l::1}
  120. #subtract 0.5 from z-coord of {_l::1}
  121. set {_x} to x-coord of {_l::1}
  122. set {_y} to y-coord of {_l::1}
  123. set {_z} to z-coord of {_l::1}
  124. set yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_x}%"
  125. set yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_y}%"
  126. set yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_z}%"
  127. set {_x} to x-coord of {_l::2}
  128. set {_y} to y-coord of {_l::2}
  129. set {_z} to z-coord of {_l::2}
  130. set yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_x}%"
  131. set yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_y}%"
  132. set yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml" to "%{_z}%"
  133.  
  134. set {_I::*} to value list "Chest" get of "plugins/SkyBlock/chest.yml"
  135. loop {_I::*}:
  136. set {_c} to "%Loop-value-2%"
  137. replace every " " with "_" in {_c}
  138. if {_i} is not set:
  139. set {_i} to "%{_c}%"
  140. else:
  141. set {_i} to "%{_i}% %{_c}%"
  142.  
  143. fallingchest(player, "%{_i}%")
  144.  
  145. stop loop
  146. set {_b} to yaml value "buildisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  147. set {_c} to yaml value "buildisland2" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  148. send player title "%{_b}%" with subtitle "%{_c}%" for 1 seconds
  149. wait a ticks
  150. if {_s} is 6:
  151. set {_s} to 2
  152. else:
  153. add 1 to {_s}
  154. if {_s} is 3 or 5:
  155. add 1 to {_l}
  156. else if arg-1 is "home":
  157. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  158. set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  159. evaluate "send ""%{_prefix}% %{_a}%"""
  160. else:
  161. set {_loc} to yaml value "Other.Home" from file "plugins/SkyBlock/Player/%player%.yml"
  162. set {_x} to yaml value "Other.Home.X" from file "plugins/SkyBlock/Player/%player%.yml"
  163. set {_y} to yaml value "Other.Home.Y" from file "plugins/SkyBlock/Player/%player%.yml"
  164. set {_z} to yaml value "Other.Home.Z" from file "plugins/SkyBlock/Player/%player%.yml"
  165. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  166. set {_loc} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  167. if "%block at {_loc}%" contains "slab":
  168. set {_skip} to true
  169. if {_skip} is not set:
  170. set {_loc2} to {_loc}
  171. subtract 1 from y-coord of {_loc2}
  172. if "%block at {_loc2}%" is "air":
  173. set {_a} to yaml value "islandair" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  174. evaluate "send ""%{_prefix}% %{_a}%"""
  175. wait a tick
  176. make player execute command "/is go"
  177. stop
  178. teleport player to {_loc}
  179. set {_a} to yaml value "teleportisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  180. evaluate "send ""%{_prefix}% %{_a}%"""
  181. else if arg-1 is "sethome":
  182. if file "plugins/SkyBlock/Player/%player%.yml" exists:
  183. set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
  184. set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
  185. set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
  186. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  187. set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  188. add 1 to x-coord of {_loc1}
  189. add 1 to z-coord of {_loc1}
  190. set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
  191. set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
  192. set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
  193. set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  194. if location of player is within {_loc1} to {_loc2}:
  195. set yaml value "Other.Home.X" from file "plugins/SkyBlock/Player/%player%.yml" to "%x-coord of location of player%"
  196. set yaml value "Other.Home.Y" from file "plugins/SkyBlock/Player/%player%.yml" to "%y-coord of location of player%"
  197. set yaml value "Other.Home.Z" from file "plugins/SkyBlock/Player/%player%.yml" to "%z-coord of location of player%"
  198. set {_a} to yaml value "sucesssethome" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  199. evaluate "send ""%{_prefix}% %{_a}%"""
  200. else:
  201. set {_a} to yaml value "islandhomecancel" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  202. evaluate "send ""%{_prefix}% %{_a}%"""
  203. else if arg-1 is "go":
  204. if file "plugins/SkyBlock/Player/%player%.yml" exists:
  205. set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml"
  206. set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml"
  207. set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml"
  208. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  209. set {_loc} to location at ({_x} parsed as number), ({_y} parsed as number)+1, ({_z} parsed as number) in world "%{_option1}%"
  210. teleport player to {_loc}
  211. set {_a} to yaml value "teleportisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  212. evaluate "send ""%{_prefix}% %{_a}%"""
  213. else:
  214. set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  215. evaluate "send ""%{_prefix}% %{_a}%"""
  216. else if arg-1 are "delete" or "remove":
  217. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  218. set {_a} to yaml value "notodelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  219. evaluate "send ""%{_prefix}% %{_a}%"""
  220. else:
  221. deleteisland(player)
  222. else if arg-1 is "credits":
  223. send "&0&l©&8Made by &nChisleLP&8 and &8&nCrisisLP"
  224. else if arg-1 is "top":
  225. set {_f::*} to files in "plugins/SkyBlock/Bedrock"
  226. if {_f::*} is set:
  227. loop {_f::*}:
  228. set {_Owner} to yaml value "Leader" from file "plugins/SkyBlock/Bedrock/%loop-value%"
  229. set {_Level} to yaml value "Other.Island.Level" from file "plugins/SkyBlock/Bedrock/%loop-value%"
  230. set {_Member::%{_Owner}%::*} to yaml list "Member" from file "plugins/SkyBlock/Bedrock/%loop-value%"
  231. set {_Level::%{_Owner}%} to {_Level}
  232. loop {_Level::*}:
  233. add 1 to {_size}
  234. if {_low.to.high.list::%loop-value%} is not set:
  235. set {_low.to.high.list::%loop-value%} to loop-index
  236. else:
  237. set {_n} to 0
  238. loop {_size} times:
  239. set {_n} to {_n}+1
  240. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  241. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  242. stop loop
  243. wait 1 tick
  244. set {_n} to size of {_low.to.high.list::*}
  245. loop {_low.to.high.list::*}:
  246. set {_high.to.low.list::%{_n}%} to loop-value
  247. set {_n} to {_n}-1
  248. wait 1 tick
  249. set {_page} to 1
  250. loop {_high.to.low.list::*}:
  251. add 1 to {_result}
  252. add 1 to {_r}
  253. set {_Top::%{_page}%::%{_r}%} to loop-value
  254. if loop-value is player:
  255. set {_rank} to {_r}
  256. else:
  257. loop {_Member::%loop-value%::*}:
  258. if loop-value-2 is player:
  259. set {_rank} to {_r}
  260. if {_result} is 10:
  261. set {_result} to 0
  262. add 1 to {_page}
  263. set {_arg1} to arg-2 parsed as number
  264. if {_arg1} is not set:
  265. set {_a} to yaml value "numbermissing" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  266. evaluate "send ""%{_prefix}% %{_a}%"""
  267. stop
  268. else:
  269. if {_top::%{_arg1}%::*} is not set:
  270. set {_a} to yaml value "pagenotfound" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  271. evaluate "send ""%{_prefix}% %{_a}%"""
  272. stop
  273. if {_Rank} is not set:
  274. set {_rank} to "-/-"
  275. send "&6&l--== &bTop Ten &6&l==-- (%arg-2%/%{_page}%)"
  276. loop {_Top::%arg-2%::*}:
  277. loop {_Member::%loop-value%::*}:
  278. if {_member} is not set:
  279. set {_member} to "%loop-value-2%"
  280. else:
  281. set {_member} to "%{_member}%, %loop-value-2%"
  282. if {_member} is not set:
  283. set {_member} to ""
  284. set {_p} to "%loop-value%" parsed as offline player
  285. send "&e&l%loop-index%&6.&8 - &a%{_p}% &8&l: &e%{_Level::%loop-value%}% &7||&8 %{_Member}%"
  286. send "&6&l--== &eYour rank: %{_rank}% &6&l==== ----"
  287. else:
  288. set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  289. evaluate "send ""%{_prefix}% %{_a}%"""
  290. else if arg-1 is "exp" or "level":
  291. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  292. set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  293. evaluate "send ""%{_prefix}% %{_a}%"""
  294. else:
  295. set {_a} to yaml value "skyblockexp" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  296. set {_b} to yaml value "skyblocklevel" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  297. set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml"
  298. set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml"
  299. set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml"
  300. set {_level} to yaml value "Other.Island.Level" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
  301. message "&a&l&m-------------------------------------"
  302. message centered "%{_a}%" to player
  303. message centered "%{_b}%%{_level}%" to player
  304. message "&a&l&m-------------------------------------"
  305. set metadata value "IS-Level" of player to "%{_level}%"
  306. else if arg-1 is "spawn" or "hub":
  307. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  308. set {_option2} to yaml value "options.spawn" from file "plugins/SkyBlock/config.yml"
  309. set {_Loc::*} to {_option2} split at ","
  310. set {_loc} to location at ({_Loc::1} parsed as number, {_Loc::2} parsed as number, {_Loc::3} parsed as number) in world "%{_option1}%"
  311. teleport player to {_loc}
  312. else if arg-1 is "rewards" or "loots":
  313. rewardlootsgui(player)
  314. else if arg-1 is "invite":
  315. if file "plugins/SkyBlock/Player/%player%.yml" exists:
  316. set {_b} to yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml"
  317. if {_b} is "%player%":
  318. set {_arg2} to arg-2 parsed as offline player
  319. if {_arg2} is online:
  320. if {_arg2} is not player:
  321. set {_p2} to {_arg2}
  322. set {_a} to yaml value "inforequest" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  323. set {_b} to yaml value "gotrequest" from file "plugins/SkyBlock/Sprache/%{Language::%{_arg2}%}%.yml"
  324. evaluate "send ""%{_prefix}% %{_a}%"""
  325. replace all "<player>" in {_b} with "%player%"
  326. evaluate "send ""%{_prefix}% %{_b}%"" to {_p2}"
  327. set {_cooldown} to yaml value "options.invitecooldown" from file "plugins/SkyBlock/config.yml"
  328. set {_cooldown} to {_cooldown} parsed as number
  329. set {Request::%{_arg2}%::%player%} to {_cooldown}
  330. while {Request::%{_arg2}%::%player%} is not 0:
  331. subtract 1 from {Request::%{_arg2}%::%player%}
  332. wait a second
  333. if {Request::%{_arg2}%::%player%} is 0:
  334. delete {Request::%{_arg2}%::%player%}
  335. set {_a} to yaml value "inforequesttimeout" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  336. set {_b} to yaml value "gotrequesttimeout" from file "plugins/SkyBlock/Sprache/%{Language::%{_arg2}%}%.yml"
  337. evaluate "send ""%{_prefix}% %{_a}%"""
  338. evaluate "send ""%{_prefix}% %{_b}%"" to {_p2}"
  339. else:
  340. set {_a} to yaml value "inviteself" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  341. evaluate "send ""%{_prefix}% %{_a}%"""
  342. else:
  343. set {_a} to yaml value "playernotonline" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  344. evaluate "send ""%{_prefix}% %{_a}%"""
  345. else:
  346. set {_a} to yaml value "notleader" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  347. evaluate "send ""%{_prefix}% %{_a}%"""
  348. else:
  349. set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  350. evaluate "send ""%{_prefix}% %{_a}%"""
  351. else if arg-1 is "join":
  352. set {_arg2} to arg-2 parsed as offline player
  353. if {_arg2} is set:
  354. if {Request::%player%::%{_arg2}%} is set:
  355. if file "plugins/SkyBlock/Player/%player%.yml" exists:
  356. set {_a} to yaml value "alreadyisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  357. evaluate "send ""%{_prefix}% %{_a}%"""
  358. set {_check} to yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml"
  359. if {_check} is "%player%":
  360. set {_a} to yaml value "joinalreadyleader" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  361. evaluate "send ""%{_prefix}% %{_a}%"""
  362. else:
  363. set {_a} to yaml value "joinalreadymember" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  364. evaluate "send ""%{_prefix}% %{_a}%"""
  365. else:
  366. set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%{_arg2}%.yml"
  367. set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%{_arg2}%.yml"
  368. set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%{_arg2}%.yml"
  369. add "%player%" to yaml list "Member" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
  370. create file "plugins/SkyBlock/Player/%player%.yml"
  371. copy({_arg2}, player)
  372. delete {Request::%player%::%{_arg2}%}
  373. make player execute command "/is home"
  374. set {_a} to yaml value "joinislandinfo" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  375. set {_b} to yaml value "joinislandgot" from file "plugins/SkyBlock/Sprache/%{Language::%{_arg2}%}%.yml"
  376. replace all "<arg-2>" in {_a} with "%{_arg2}%"
  377. replace all "<player>" in {_b} with "%player%"
  378. evaluate "send ""%{_prefix}% %{_a}%"""
  379. set {_p2} to {_arg2}
  380. evaluate "send ""%{_prefix}% %{_b}%"" to {_p2}"
  381. else:
  382. set {_a} to yaml value "norequest" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  383. evaluate "send ""%{_prefix}% %{_a}%"""
  384. else:
  385. set {_a} to yaml value "targetmissing" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  386. evaluate "send ""%{_prefix}% %{_a}%"""
  387. else if arg-1 is "leave":
  388. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  389. set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  390. evaluate "send ""%{_prefix}% %{_a}%"""
  391. else:
  392. set {_check} to yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml"
  393. if {_check} is "%player%":
  394. set {_a} to yaml value "infodelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  395. evaluate "send ""%{_prefix}% %{_a}%"""
  396. else:
  397. if arg-2 is player:
  398. silentleave(player, "A")
  399. set {_a} to yaml value "gotkickcausedelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  400. evaluate "send ""%{_prefix}% %{_a}%"""
  401. else:
  402. set {_a} to yaml value "islandleave" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  403. evaluate "send ""%{_prefix}% %{_a}%"""
  404. silentleave(player, "B")
  405. else if arg-1 is "kick":
  406. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  407. set {_a} to yaml value "noisland" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  408. evaluate "send ""%{_prefix}% %{_a}%"""
  409. else:
  410. set {_b} to yaml value "Other.Leader" from file "plugins/SkyBlock/Player/%player%.yml"
  411. if {_b} is "%player%":
  412. if arg-2 is set:
  413. set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml"
  414. set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml"
  415. set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml"
  416. set {_m::*} to yaml list "Member" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
  417. loop {_m::*}:
  418. if loop-value is "%arg-2%":
  419. remove "%arg-2%" from yaml list "Member" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
  420. set {_a} to yaml value "infokicked" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  421. set {_b} to yaml value "gotkicked" from file "plugins/SkyBlock/Sprache/%{Language::%arg-2%}%.yml"
  422. replace all "<arg-2>" in {_a} with "%arg-2%"
  423. replace all "<player>" in {_b} with "%player%"
  424. evaluate "send ""%{_prefix}% %{_a}%"""
  425. set {_p2} to arg-2 parsed as offline player
  426. evaluate "send ""%{_prefix}% %{_b}%"" to {_p2}"
  427. silentleave({_p2}, "A")
  428. stop
  429. set {_a} to yaml value "cantfoundplayer" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  430. replace all "<arg-2>" in {_a} with "%arg-2%"
  431. evaluate "send ""%{_prefix}% %{_a}%"""
  432. else:
  433. set {_a} to yaml value "targetmissing" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  434. evaluate "send ""%{_prefix}% %{_a}%"""
  435. else:
  436. set {_a} to yaml value "nopermission" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  437. send "%{_a}%"
  438. else if arg-1 is "challenge":
  439. make player execute command "/challenge"
  440. else if arg-1 is "help":
  441. set {_n} to arg-2 parsed as integers
  442. if {_n} is more than 3:
  443. set {_a1} to yaml value "helpsite" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  444. evaluate "send ""%{_prefix}% %{_a1}%"""
  445. stop
  446. set {_a} to yaml value "helptitel" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  447. send "%{_a}%"
  448. send " "
  449. if arg-2 is "1":
  450. set {_b} to yaml value "iscreate" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  451. evaluate "send ""%{_prefix}% %{_b}%"""
  452. set {_c} to yaml value "isdelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  453. evaluate "send ""%{_prefix}% %{_c}%"""
  454. set {_d} to yaml value "isteleport" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  455. evaluate "send ""%{_prefix}% %{_d}%"""
  456. set {_e} to yaml value "issethome" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  457. evaluate "send ""%{_prefix}% %{_e}%"""
  458. set {_f} to yaml value "isteleportgo" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  459. evaluate "send ""%{_prefix}% %{_f}%"""
  460. else if arg-2 is "2":
  461. set {_b} to yaml value "islevel" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  462. evaluate "send ""%{_prefix}% %{_b}%"""
  463. set {_c} to yaml value "istop" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  464. evaluate "send ""%{_prefix}% %{_c}%"""
  465. set {_d} to yaml value "isinvite" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  466. evaluate "send ""%{_prefix}% %{_d}%"""
  467. set {_e} to yaml value "iskick" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  468. evaluate "send ""%{_prefix}% %{_e}%"""
  469. set {_f} to yaml value "isjoin" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  470. evaluate "send ""%{_prefix}% %{_f}%"""
  471. else if arg-2 is "3":
  472. set {_b} to yaml value "isleave" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  473. evaluate "send ""%{_prefix}% %{_b}%"""
  474. set {_c} to yaml value "isgui" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  475. evaluate "send ""%{_prefix}% %{_c}%"""
  476. set {_d} to yaml value "isloots" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  477. evaluate "send ""%{_prefix}% %{_d}%"""
  478. set {_e} to yaml value "isspawn" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  479. evaluate "send ""%{_prefix}% %{_e}%"""
  480. set {_f} to yaml value "iscredits" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  481. evaluate "send ""%{_prefix}% %{_f}%"""
  482. set {_g} to yaml value "helpsite2" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  483. send center "&5%{_g}%: %{_n}%/3" to player
  484. send "&m----------------------------------"
  485.  
  486. command /language:
  487. trigger:
  488. languagechoose(player)
  489.  
  490. command /admin:
  491. permission: *
  492. trigger:
  493. give player a blaze rod named "&0&lCruel Stab"
  494.  
  495. command /chest:
  496. permission: *
  497. trigger:
  498. set {_i::*} to all blocks
  499. set {_a} to random number between 3 and 10
  500. loop {_a} times:
  501. set {_n} to random element out of {_i::*}
  502. replace all " " with "_" in {_n}
  503. if {_fin} is not set:
  504. set {_fin} to "%{_n}%"
  505. else:
  506. set {_fin} to "%{_fin}% %{_n}%"
  507. fallingchest(player, {_fin})
  508.  
  509. #==================================================#
  510. #command /iscoop <player>:
  511. # trigger:
  512. # set {Coop.%arg-1%} to player
  513. # send "Du hast %arg-1% Rechte gegebn"
  514. # send "Du bekamst von %player% Rechte für sein insel" to arg-1
  515. #==================================================#
  516.  
  517. #==================================================================#
  518. #============================= E V E N T S ==========================#
  519. #==================================================================#
  520.  
  521. on script load:
  522. send "&c%script% - &aLOADED" to all ops
  523. if {firstrun.%script%} is not set:
  524. if existence of "plugins/SkyBlock/schematics/" is false:
  525. create file "plugins/SkyBlock/schematics/"
  526. send "&cPlease add some schematics in 'plugins/SkyBlock/schematics/'." to all ops
  527. #if text from "https://pastebin.com/raw/tQtCJ3gJ" is not "{@Version}":
  528. set {_text} to text from "https://pastebin.com/raw/8G6wWy3v"
  529. set {_t::*} to {_text} split at " "
  530. loop {_t::*}:
  531. if file "plugins/SkyBlock/Sprache/%loop-value%" exists:
  532. send "&8%loop-value% &7- &aInstalled" to all ops
  533. else:
  534. download from "https://raw.githubusercontent.com/CrisisLP/Skyblock/master/%loop-value%" to "plugins/SkyBlock/Sprache/%loop-value%"
  535. send "&8%loop-value% &7- &cDownloaded" to all ops
  536. if file "plugins/SkyBlock/config.yml" doesn't exist:
  537. set yaml value "options.world" from file "plugins/SkyBlock/config.yml" to "world"
  538. set yaml value "options.spawn" from file "plugins/SkyBlock/config.yml" to "0.5, 100, 0.5"
  539. set yaml value "options.distance" from file "plugins/SkyBlock/config.yml" to "100"
  540. set yaml value "options.height" from file "plugins/SkyBlock/config.yml" to "100.5"
  541. set yaml value "options.protect" from file "plugins/SkyBlock/config.yml" to "25"
  542. set yaml value "options.invitecooldown" from file "plugins/SkyBlock/config.yml" to "30"
  543. set yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml" to "IS.build"
  544. set yaml value "options.portalenter" from file "plugins/SkyBlock/config.yml" to "true"
  545. set yaml value "options.elytra" from file "plugins/SkyBlock/config.yml" to "true"
  546. set yaml value "options.pvp" from file "plugins/SkyBlock/config.yml" to "false"
  547. send "&cconfig.yml not founded! So generate a default config.yml" to all ops
  548. if file "plugins/SkyBlock/chest.yml" doesn't exist:
  549. add "3 of Apple" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
  550. add "sapling" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
  551. add "4 of stick" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
  552. add "ice" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
  553. add "4 of bone" to yaml list "Chest" from file "plugins/SkyBlock/chest.yml"
  554. send "&cchest.yml not founded! So generate a default chest.yml" to all ops
  555. if existence of "plugins/SkyBlock/Blocks.yml" is false:
  556. create file "plugins/SkyBlock/Blocks.yml"
  557. set {_blocks::*} to all blocks
  558. loop {_blocks::*}:
  559. set yaml value "%loop-value%" from file "plugins/SkyBlock/Blocks.yml" to "0"
  560. send "&cAll blocks added to 'plugins/SkyBlock/Blocks.yml' with 0" to all ops
  561. if existence of "plugins/SkyBlock/Sprache/english.yml" is false:
  562. send "&4&lNo english.yml file!" to all ops
  563. if existence of "plugins/SkyBlock/Sprache/deutsch.yml" is false:
  564. send "&4&lKein deutsch.yml Datei!" to all ops
  565. else:
  566. send "&aLanguage loaded" to all ops
  567. set {firstrun.%script%} to true
  568.  
  569. on join:
  570. wait a ticks
  571. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  572. set {_option2} to yaml value "options.spawn" from file "plugins/SkyBlock/config.yml"
  573. if player is op:
  574. if text from "https://pastebin.com/raw/tQtCJ3gJ" is not "{@Version}":
  575. send "&8========================================" to all ops
  576. send "" to all ops
  577. message centered "&a&lUPDATE FOUNDED" to all ops
  578. send "" to all ops
  579. send "&f&lDownload here:" to all ops
  580. send "&lhttps://forums.skunity.com/resources/skyblock-skript.193/" to all ops
  581. send "" to all ops
  582. send "&8========================================" to all ops
  583. if {Language::%player%} is not set:
  584. set {Language::%player%} to "english"
  585. if {Leave.%player%} is set:
  586. delete {Leave.%player%}
  587. silentleave(player, "A")
  588. set {_a} to yaml value "gotkickcausedelete" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  589. send "%{_a}%"
  590. if file "plugins/SkyBlock/Player/%player%.yml" exists:
  591. set {_x} to yaml value "Other.Bedrock.X" from file "plugins/SkyBlock/Player/%player%.yml"
  592. set {_y} to yaml value "Other.Bedrock.Y" from file "plugins/SkyBlock/Player/%player%.yml"
  593. set {_z} to yaml value "Other.Bedrock.Z" from file "plugins/SkyBlock/Player/%player%.yml"
  594. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  595. set {_loc} to location at ({_x} parsed as number), ({_y} parsed as number)+1, ({_z} parsed as number) in world "%{_option1}%"
  596. teleport player to {_loc}
  597. else:
  598. set {_Loc::*} to {_option2} split at ","
  599. set {_loc} to location at ({_Loc::1} parsed as number, {_Loc::2} parsed as number, {_Loc::3} parsed as number) in world "%{_option1}%"
  600. teleport player to {_loc}
  601.  
  602. on inventory click:
  603. if inventory name of player's current inventory is "&6Schematics":
  604. cancel event
  605. if clicked item is grass block:
  606. set {_n} to name of clicked item
  607. close player's inventory
  608. make player execute command "/is create %{_n}%"
  609. if inventory name of player's current inventory is "&b&lSkyBlock":
  610. cancel event
  611. if clicked slot is 10:
  612. close player's inventory
  613. if file "plugins/SkyBlock/Player/%player%.yml" exists:
  614. make player execute command "/island go"
  615. else:
  616. make player execute command "/island create"
  617. else if clicked slot is 11:
  618. close player's inventory
  619. make player execute command "/island exp"
  620. else if clicked slot is 12:
  621. close player's inventory
  622. make player execute command "/island challenge"
  623. else if clicked slot is 13:
  624. close player's inventory
  625. make player execute command "/island top"
  626. else if clicked slot is 14:
  627. close player's inventory
  628. make player execute command "/island rewards"
  629. else if clicked slot is 15:
  630. close player's inventory
  631. make player execute command "/island spawn"
  632. else if inventory name of player's current inventory is "&dRewards Box" or "&dBelohnungs Truhe":
  633. cancel event
  634. if clicked slot is 2:
  635. close player's inventory
  636. else if clicked slot is 3:
  637. close player's inventory
  638. else if clicked slot is 4:
  639. close player's inventory
  640. else if clicked slot is 5:
  641. close player's inventory
  642. else if clicked slot is 6:
  643. close player's inventory
  644. else if inventory name of player's current inventory is "&8&lSkyblock &7- &6&lAdmin":
  645. cancel event
  646.  
  647. on place:
  648. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  649. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  650. set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
  651. if player is in world "%{_option1}%":
  652. if player has permission "%{_option2}%":
  653. stop
  654. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  655. cancel event
  656. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  657. evaluate "send ""%{_prefix}% %{_a}%"""
  658. else:
  659. set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
  660. set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
  661. set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
  662. set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  663. add 1 to x-coord of {_loc1}
  664. add 1 to z-coord of {_loc1}
  665. set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
  666. set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
  667. set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
  668. set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  669. if location of event-block is not within {_loc1} to {_loc2}:
  670. cancel event
  671. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  672. evaluate "send ""%{_prefix}% %{_a}%"""
  673. else:
  674. expblocks(event-block, player, "place")
  675.  
  676. on break:
  677. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  678. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  679. set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
  680. if player is in world "%{_option1}%":
  681. if player has permission "%{_option2}%":
  682. stop
  683. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  684. cancel event
  685. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  686. evaluate "send ""%{_prefix}% %{_a}%"""
  687. else:
  688. set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
  689. set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
  690. set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
  691. set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  692. add 1 to x-coord of {_loc1}
  693. add 1 to z-coord of {_loc1}
  694. set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
  695. set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
  696. set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
  697. set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  698. if location of event-block is not within {_loc1} to {_loc2}:
  699. cancel event
  700. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"#!=====
  701. evaluate "send ""%{_prefix}% %{_a}%"""
  702. stop
  703. else:
  704. expblocks(event-block, player, "break")
  705. event-block is chest
  706. set {_loc} to location of event-block
  707. subtract 0.5 from y-coord of {_loc}
  708. if {Chest::%{_loc}%} is set:
  709. cancel event
  710. #loop all items in event-block:
  711. #drop loop-value at player
  712. #wait a ticks
  713. set block at {_loc} to air
  714. delete {Chest::%{_loc}%}
  715.  
  716. on rightclick:
  717. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  718. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  719. set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
  720. if player is in world "%{_option1}%":
  721. if player has permission "%{_option2}%":
  722. stop
  723. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  724. cancel event
  725. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  726. evaluate "send ""%{_prefix}% %{_a}%"""
  727. else:
  728. set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
  729. set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
  730. set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
  731. set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  732. add 1 to x-coord of {_loc1}
  733. add 1 to z-coord of {_loc1}
  734. set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
  735. set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
  736. set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
  737. set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  738. if location of event-block is not within {_loc1} to {_loc2}:
  739. cancel event
  740. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  741. evaluate "send ""%{_prefix}% %{_a}%"""
  742.  
  743. on armor stand manipulate:
  744. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  745. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  746. set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
  747. if player is in world "%{_option1}%":
  748. if player has permission "%{_option2}%":
  749. stop
  750. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  751. cancel event
  752. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  753. evaluate "send ""%{_prefix}% %{_a}%"""
  754. else:
  755. set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
  756. set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
  757. set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
  758. set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  759. add 1 to x-coord of {_loc1}
  760. add 1 to z-coord of {_loc1}
  761. set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
  762. set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
  763. set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
  764. set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  765. if location of event-entity is not within {_loc1} to {_loc2}:
  766. cancel event
  767. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  768. evaluate "send ""%{_prefix}% %{_a}%"" to player"
  769.  
  770. on elytra toggle:
  771. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  772. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  773. set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
  774. set {_option3} to yaml value "options.elytra" from file "plugins/SkyBlock/config.yml"
  775. if {_option3} is "true":
  776. if player is in world "%{_option1}%":
  777. if player has permission "%{_option2}%":
  778. stop
  779. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  780. cancel event
  781. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  782. evaluate "send ""%{_prefix}% %{_a}%"""
  783. else:
  784. set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
  785. set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
  786. set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
  787. set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  788. add 1 to x-coord of {_loc1}
  789. add 1 to z-coord of {_loc1}
  790. set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
  791. set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
  792. set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
  793. set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  794. if location of event-entity is not within {_loc1} to {_loc2}:
  795. cancel event
  796. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  797. evaluate "send ""%{_prefix}% %{_a}%"" to player"
  798.  
  799. on entity block modify:
  800. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  801. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  802. set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
  803. if player has permission "%{_option2}%":
  804. stop
  805. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  806. cancel event
  807. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  808. evaluate "send ""%{_prefix}% %{_a}%"""
  809. else:
  810. set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
  811. set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
  812. set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
  813. set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  814. add 1 to x-coord of {_loc1}
  815. add 1 to z-coord of {_loc1}
  816. set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
  817. set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
  818. set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
  819. set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  820. if location of event-entity is not within {_loc1} to {_loc2}:
  821. cancel event
  822. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  823. evaluate "send ""%{_prefix}% %{_a}%"" to player"
  824. if location of event-block is not within {_loc1} to {_loc2}:
  825. cancel event
  826. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  827. evaluate "send ""%{_prefix}% %{_a}%"" to player"
  828.  
  829. on world change:
  830. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  831. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  832. set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
  833. set {_option3} to yaml value "options.portalenter" from file "plugins/SkyBlock/config.yml"
  834. if player has permission "%{_option2}%":
  835. if event-world is "%{_option1}%":
  836. make player execute command "/is spawn"
  837. stop
  838. if event-world is "world_nether":
  839. if "%{_option3}%" is "false":
  840. make player execute command "/is go"
  841. set {_a} to yaml value "portal" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  842. evaluate "send ""%{_prefix}% %{_a}%"""
  843. if event-world is "%{_option1}%":
  844. make player execute command "/is go"
  845.  
  846. on rightclick on chest:
  847. if file "plugins/SkyBlock/Player/%player%.yml" exists:
  848. wait a ticks
  849. if inventory name of player's current inventory is "container.chest":
  850. set {_loc} to location of event-block
  851. subtract 0.5 from y-coord of {_loc}
  852. {Chest::%{_loc}%} is set
  853. set {Chest.%player%} to {_loc}
  854.  
  855. on crop trample:
  856. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  857. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  858. set {_option2} to yaml value "options.buildpermission" from file "plugins/SkyBlock/config.yml"
  859. if player has permission "%{_option2}%":
  860. stop
  861. if file "plugins/SkyBlock/Player/%player%.yml" doesn't exists:
  862. cancel event
  863. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  864. evaluate "send ""%{_prefix}% %{_a}%"""
  865. else:
  866. set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%player%.yml"
  867. set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%player%.yml"
  868. set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%player%.yml"
  869. set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  870. add 1 to x-coord of {_loc1}
  871. add 1 to z-coord of {_loc1}
  872. set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%player%.yml"
  873. set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%player%.yml"
  874. set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%player%.yml"
  875. set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  876. if location of event-block is not within {_loc1} to {_loc2}:
  877. cancel event
  878. set {_a} to yaml value "protect" from file "plugins/SkyBlock/Sprache/%{Language::%player%}%.yml"
  879. evaluate "send ""%{_prefix}% %{_a}%"" to player"
  880.  
  881. on respawn:
  882. wait a tick
  883. if file "plugins/SkyBlock/Player/%player%.yml" exists:
  884. make player execute command "/is home"
  885. else:
  886. make player execute command "/is spawn"
  887.  
  888. on inventory close:
  889. {Chest.%player%} is set
  890. if {Chest::%{Chest.%player%}%} is set:
  891. loop 27 times:
  892. set {_s} to slot loop-number -1 of player's current inventory
  893. if {_s} is not air:
  894. delete {Chest.%player%}
  895. stop
  896. set block at {Chest.%player%} to air
  897. create 50 of lava particles at {Chest.%player%} offset by 1, 0, 1 at speed 0.5
  898. delete {Chest::%{chest.%player%}%}
  899. delete {Chest.%player%}
  900.  
  901. on damage:
  902. set {_prefix} to yaml value "prefix" from file "plugins/SkyBlock/Sprache/%{Language::%attacker%}%.yml"
  903. set {_option1} to yaml value "options.world" from file "plugins/SkyBlock/config.yml"
  904. set {_option2} to yaml value "options.attackpermission" from file "plugins/SkyBlock/config.yml"
  905. set {_option3} to yaml value "options.pvp" from file "plugins/SkyBlock/config.yml"
  906. set {_a} to yaml value "pvp" from file "plugins/SkyBlock/Sprache/%{Language::%attacker%}%.yml"
  907. if attacker has permission "%{_option2}%":
  908. stop
  909. if "%{_option3}%" is "false":
  910. if attacker is a player:
  911. if victim is a player:
  912. evaluate "send ""%{_prefix}% %{_a}%"" to attacker"
  913. cancel event
  914. stop
  915. else if "%victim%" is "Skeleton", "Zombie", "Enderman", "Creeper", "Spider", "Slime", "Ghast", "Zombie pigman", "Cave spider", "Silverfish", "Blaze", "Magma Cube", "Witch", "Endermite", "Guardian" or "Shulker":
  916. stop
  917. if file "plugins/SkyBlock/Player/%attacker%.yml" doesn't exists:
  918. cancel event
  919. evaluate "send ""%{_prefix}% %{_a}%"" to attacker"
  920. else:
  921. set {_x} to yaml value "loc1.x" from file "plugins/SkyBlock/Player/%attacker%.yml"
  922. set {_y} to yaml value "loc1.y" from file "plugins/SkyBlock/Player/%attacker%.yml"
  923. set {_z} to yaml value "loc1.z" from file "plugins/SkyBlock/Player/%attacker%.yml"
  924. set {_loc1} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  925. add 1 to x-coord of {_loc1}
  926. add 1 to z-coord of {_loc1}
  927. set {_x} to yaml value "loc2.x" from file "plugins/SkyBlock/Player/%attacker%.yml"
  928. set {_y} to yaml value "loc2.y" from file "plugins/SkyBlock/Player/%attacker%.yml"
  929. set {_z} to yaml value "loc2.z" from file "plugins/SkyBlock/Player/%attacker%.yml"
  930. set {_loc2} to location at ({_x} parsed as number), ({_y} parsed as number), ({_z} parsed as number) in world "%{_option1}%"
  931. if location of attacker is not within {_loc1} to {_loc2}:
  932. cancel event
  933. evaluate "send ""%{_prefix}% %{_a}%"" to attacker"
  934.  
  935. #==================================================================#
  936. #=========================== C R A P C O D E =======================#
  937. #==================================================================#
  938. on right click with blaze rod:
  939. if player's tool is blaze rod named "&0&lCruel Stab":
  940. if target block is bedrock:
  941. if player has permission "Admin":#
  942. set {_loc} to location of clicked block
  943. set {_x} to x-coord of {_loc}
  944. set {_y} to y-coord of {_loc}
  945. set {_z} to z-coord of {_loc}
  946. if file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml" exists:
  947. set {_l} to yaml value "Leader" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
  948. set {_m::*} to yaml list "Member" from file "plugins/SkyBlock/Bedrock/%{_x}%_%{_y}%_%{_z}%.yml"
  949. open chest with 3 rows named "&8&lSkyblock &7- &6&lAdmin" to player
  950. set {_s} to size of {_m::*}
  951. set slot 0 of player's current inventory to ("%{_l}%" parsed as offline player)'s skull named "&cLeader&7 %{_l}%"
  952. loop {_s} times:
  953. set slot loop-number of player's current inventory to ("%{_m::%loop-number%}%" parsed as offline player)'s skull named "&6Member&7 %{_m::%loop-number%}%"
  954.  
  955. on craft of item frame:
  956. cancel event
  957. send "Buggy"
  958.  
  959. on ignition:
  960. if "%player%" is "<none>":
  961. cancel event
  962.  
  963. on explode:
  964. cancel event
Add Comment
Please, Sign In to add comment