Guest User

Untitled

a guest
Jun 23rd, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.84 KB | None | 0 0
  1. command /nDrop:drop [<player>] [<text>]:
  2. description: nDrop » Informacje o dropie ze stone.
  3. aliases: drop, kamien, stone
  4. trigger:
  5. if executor is player:
  6. if player has permission "nDrop.drop" or "nDrop.*":
  7. open chest with 4 rows named "&bDrop ze stone" to player
  8. wait 1 tick
  9. format slot 5 of player with 1 of book named "&b&lDrop ze stone" to be unstealable
  10. add "coal" and "iron" and "lapis" and "gold" and "diamond" and "redstone" and "emerald" and "ender pearl" and "tnt" and "apple" and "bookshelf" and "raw fish" to {_gui1::*}
  11. loop {_gui1::*}:
  12. set {_gui::%loop-value%::chance} to value "configuration.drop.%loop-value%.chance" get of "plugins/nDrop/configuration.yml"
  13. set {_gui::%loop-value%::height} to value "configuration.drop.%loop-value%.height" get of "plugins/nDrop/configuration.yml"
  14. set {_gui::%loop-value%::woodpickaxe} to value "configuration.drop.%loop-value%.pickaxes.wood" get of "plugins/nDrop/configuration.yml"
  15. set {_gui::%loop-value%::stonepickaxe} to value "configuration.drop.%loop-value%.pickaxes.stone" get of "plugins/nDrop/configuration.yml"
  16. set {_gui::%loop-value%::ironpickaxe} to value "configuration.drop.%loop-value%.pickaxes.iron" get of "plugins/nDrop/configuration.yml"
  17. set {_gui::%loop-value%::goldpickaxe} to value "configuration.drop.%loop-value%.pickaxes.gold" get of "plugins/nDrop/configuration.yml"
  18. set {_gui::%loop-value%::diamondpickaxe} to value "configuration.drop.%loop-value%.pickaxes.diamond" get of "plugins/nDrop/configuration.yml"
  19. set {_gui::%loop-value%::ore} to value "configuration.drop.%loop-value%.ore.drop" get of "plugins/nDrop/configuration.yml"
  20. set {_gui::%loop-value%::drop} to value "drop.%loop-value%" get of "plugins/nDrop/players/%player%.yml"
  21. set {_cobblestone-stone-drop} to value "drop.cobble-stone" get of "plugins/nDrop/players/%player%.yml"
  22. set {_fortune1} to value "configuration.multiplier.fortune1" get of "plugins/nDrop/configuration.yml"
  23. set {_fortune2} to value "configuration.multiplier.fortune2" get of "plugins/nDrop/configuration.yml"
  24. set {_fortune3} to value "configuration.multiplier.fortune3" get of "plugins/nDrop/configuration.yml"
  25. set {_superdrop} to value "configuration.multiplier.super-drop" get of "plugins/nDrop/configuration.yml"
  26. set {_turbodrop} to value "configuration.multiplier.turbo-drop" get of "plugins/nDrop/configuration.yml"
  27. set {_turbodrop-active} to value "configuration.other.turbo-drop" get of "plugins/nDrop/configuration.yml"
  28. set {_turboexperience} to value "configuration.multiplier.turbo-drop" get of "plugins/nDrop/configuration.yml"
  29. set {_turboexperience-active} to value "configuration.other.turbo-experience" get of "plugins/nDrop/configuration.yml"
  30. set {_experience} to value "configuration.other.experience" get of "plugins/nDrop/configuration.yml"
  31. set {_turbodrop-help} to ""
  32. if player has permission "nDrop.super-drop" or "nDrop.*":
  33. set {_superdrop-permission} to "&atak"
  34. else:
  35. set {_superdrop-permission} to "&cnie"
  36. if {_turbodrop-active} is "true":
  37. set {_turbodrop-active} to "&atak"
  38. if player has permission "nDrop.turbo-drop" or "nDrop.*":
  39. set {_turbodrop-help} to "||||&7Kliknij, aby &cwylaczyc &7turbo drop"
  40. else:
  41. set {_turbodrop-active} to "&cnie"
  42. if player has permission "nDrop.turbo-drop" or "nDrop.*":
  43. set {_turbodrop-help} to "||||&7Kliknij, aby &awlaczyc &7turbo drop"
  44. if {_turboexperience-active} is "true":
  45. set {_turboexperience-active} to "&atak"
  46. if player has permission "nDrop.turbo-experience" or "nDrop.*":
  47. set {_turboexperience-help} to "||||&7Kliknij, aby &cwylaczyc &7turbo experience"
  48. else:
  49. set {_turboexperience-active} to "&cnie"
  50. if player has permission "nDrop.turbo-experience" or "nDrop.*":
  51. set {_turboexperience-help} to "||||&7Kliknij, aby &awlaczyc &7turbo experience"
  52. loop {_gui1::*}:
  53. loop {_gui::%loop-value-1%::*}:
  54. if {_gui::%loop-value-1%::%loop-index-2%} is "true":
  55. set {_gui::%loop-value-1%::%loop-index-2%} to "&atak"
  56. set {_gui::%loop-value-1%::%loop-index-2%-help} to "&cwylaczyc"
  57. if {_gui::%loop-value-1%::%loop-index-2%} is "false":
  58. set {_gui::%loop-value-1%::%loop-index-2%} to "&cnie"
  59. set {_gui::%loop-value-1%::%loop-index-2%-help} to "&awlaczyc"
  60. if {_cobblestone-stone-drop} is "true":
  61. set {_cobblestone-stone-drop} to "&atak"
  62. set {_cobblestone-stone-drop-help} to "&cwylaczyc"
  63. if {_cobblestone-stone-drop} is "false":
  64. set {_cobblestone-stone-drop} to "&cnie"
  65. set {_cobblestone-stone-drop-help} to "&awlaczyc"
  66. format slot 10 of player with 1 of coal item named "&6&lWegiel" with lore "&7Szansa: &f%{_gui::coal::chance}%%%||&7Wysokosc: &f<%{_gui::coal::height}%||&7Kilof drewniany: &f%{_gui::coal::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::coal::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::coal::ironpickaxe}%||&7Kilof zloty: &f%{_gui::coal::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::coal::diamondpickaxe}%||&7Wylatuje z rudy: &f%{_gui::coal::ore}%||&7Dropi ze stone: &f%colored {_gui::coal::drop}%||||&7Kliknij, aby &f%colored {_gui::coal::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% coal"
  67. format slot 11 of player with 1 of iron ingot named "&6&lZelazo" with lore "&7Szansa: &f%{_gui::iron::chance}%%%||&7Wysokosc: &f<%{_gui::iron::height}%||&7Kilof drewniany: &f%{_gui::iron::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::iron::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::iron::ironpickaxe}%||&7Kilof zloty: &f%{_gui::iron::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::iron::diamondpickaxe}%||&7Wylatuje z rudy: &f%{_gui::iron::ore}%||&7Dropi ze stone: &f%colored {_gui::iron::drop}%||||&7Kliknij, aby &f%colored {_gui::iron::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% iron"
  68. format slot 12 of player with 1 of lapis lazuli named "&6&lLazuryt" with lore "&7Szansa: &f%{_gui::lapis::chance}%%%||&7Wysokosc: &f<%{_gui::lapis::height}%||&7Kilof drewniany: &f%{_gui::lapis::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::lapis::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::lapis::ironpickaxe}%||&7Kilof zloty: &f%{_gui::lapis::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::lapis::diamondpickaxe}%||&7Wylatuje z rudy: &f%{_gui::lapis::ore}%||&7Dropi ze stone: &f%colored {_gui::lapis::drop}%||||&7Kliknij, aby &f%colored {_gui::lapis::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% lapis"
  69. format slot 13 of player with 1 of gold ingot named "&6&lZloto" with lore "&7Szansa: &f%{_gui::gold::chance}%%%||&7Wysokosc: &f<%{_gui::gold::height}%||&7Kilof drewniany: &f%{_gui::gold::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::gold::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::gold::ironpickaxe}%||&7Kilof zloty: &f%{_gui::gold::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::gold::diamondpickaxe}%||&7Wylatuje z rudy: &f%{_gui::gold::ore}%||&7Dropi ze stone: &f%colored {_gui::gold::drop}%||||&7Kliknij, aby &f%colored {_gui::gold::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% gold"
  70. format slot 14 of player with 1 of diamond named "&6&lDiamenty" with lore "&7Szansa: &f%{_gui::diamond::chance}%%%||&7Wysokosc: &f<%{_gui::diamond::height}%||&7Kilof drewniany: &f%{_gui::diamond::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::diamond::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::diamond::ironpickaxe}%||&7Kilof zloty: &f%{_gui::diamond::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::diamond::diamondpickaxe}%||&7Wylatuje z rudy: &f%{_gui::diamond::ore}%||&7Dropi ze stone: &f%colored {_gui::diamond::drop}%||||&7Kliknij, aby &f%colored {_gui::diamond::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% diamond"
  71. format slot 15 of player with 1 of redstone named "&6&lCzerwony kamien" with lore "&7Szansa: &f%{_gui::redstone::chance}%%%||&7Wysokosc: &f<%{_gui::redstone::height}%||&7Kilof drewniany: &f%{_gui::redstone::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::redstone::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::redstone::ironpickaxe}%||&7Kilof zloty: &f%{_gui::redstone::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::redstone::diamondpickaxe}%||&7Wylatuje z rudy: &f%{_gui::redstone::ore}%||&7Dropi ze stone: &f%colored {_gui::redstone::drop}%||||&7Kliknij, aby &f%colored {_gui::redstone::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% redstone"
  72. format slot 16 of player with 1 of emerald named "&6&lSzmaragdy" with lore "&7Szansa: &f%{_gui::emerald::chance}%%%||&7Wysokosc: &f<%{_gui::emerald::height}%||&7Kilof drewniany: &f%{_gui::emerald::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::emerald::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::emerald::ironpickaxe}%||&7Kilof zloty: &f%{_gui::emerald::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::emerald::diamondpickaxe}%||&7Wylatuje z rudy: &f%{_gui::emerald::ore}%||&7Dropi ze stone: &f%colored {_gui::emerald::drop}%||||&7Kliknij, aby &f%colored {_gui::emerald::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% emerald"
  73. format slot 20 of player with 1 of ender pearl named "&6&lPerly endermana" with lore "&7Szansa: &f%{_gui::ender pearl::chance}%%%||&7Wysokosc: &f<%{_gui::ender pearl::height}%||&7Kilof drewniany: &f%{_gui::ender pearl::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::ender pearl::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::ender pearl::ironpickaxe}%||&7Kilof zloty: &f%{_gui::ender pearl::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::ender pearl::diamondpickaxe}%||&7Dropi ze stone: &f%colored {_gui::ender pearl::drop}%||||&7Kliknij, aby &f%colored {_gui::ender pearl::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% ender pearl"
  74. format slot 21 of player with 1 of tnt named "&6&lTNT" with lore "&7Szansa: &f%{_gui::tnt::chance}%%%||&7Wysokosc: &f<%{_gui::tnt::height}%||&7Kilof drewniany: &f%{_gui::tnt::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::tnt::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::tnt::ironpickaxe}%||&7Kilof zloty: &f%{_gui::tnt::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::tnt::diamondpickaxe}%||&7Dropi ze stone: &f%colored {_gui::tnt::drop}%||||&7Kliknij, aby &f%colored {_gui::tnt::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% tnt"
  75. format slot 22 of player with 1 of apple named "&6&lJablka" with lore "&7Szansa: &f%{_gui::apple::chance}%%%||&7Wysokosc: &f<%{_gui::apple::height}%||&7Kilof drewniany: &f%{_gui::apple::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::apple::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::apple::ironpickaxe}%||&7Kilof zloty: &f%{_gui::apple::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::apple::diamondpickaxe}%||&7Dropi ze stone: &f%colored {_gui::apple::drop}%||||&7Kliknij, aby &f%colored {_gui::apple::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% apple"
  76. format slot 23 of player with 1 of bookshelf named "&6&lBiblioteczki" with lore "&7Szansa: &f%{_gui::bookshelf::chance}%%%||&7Wysokosc: &f<%{_gui::bookshelf::height}%||&7Kilof drewniany: &f%{_gui::bookshelf::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::bookshelf::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::bookshelf::ironpickaxe}%||&7Kilof zloty: &f%{_gui::bookshelf::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::bookshelf::diamondpickaxe}%||&7Dropi ze stone: &f%colored {_gui::bookshelf::drop}%||||&7Kliknij, aby &f%colored {_gui::bookshelf::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% bookshelf"
  77. format slot 24 of player with 1 of raw fish named "&6&lSurowe ryby" with lore "&7Szansa: &f%{_gui::raw fish::chance}%%%||&7Wysokosc: &f<%{_gui::raw fish::height}%||&7Kilof drewniany: &f%{_gui::raw fish::woodpickaxe}%||&7Kilof kamienny: &f%{_gui::raw fish::stonepickaxe}%||&7Kilof zelazny: &f%{_gui::raw fish::ironpickaxe}%||&7Kilof zloty: &f%{_gui::raw fish::goldpickaxe}%||&7Kilof diamentowy: &f%{_gui::raw fish::diamondpickaxe}%||&7Dropi ze stone: &f%colored {_gui::raw fish::drop}%||||&7Kliknij, aby &f%colored {_gui::raw fish::drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% raw fish"
  78. format slot 28 of player with 1 of enchanted book named "&6&lSzczescie I" with lore "&7Szczescie I: &f+%{_fortune1}%%%" to be unstealable
  79. format slot 29 of player with 1 of enchanted book named "&6&lSzczescie II" with lore "&7Szczescie II: &f+%{_fortune2}%%%" to be unstealable
  80. format slot 30 of player with 1 of enchanted book named "&6&lSzczescie III" with lore "&7Szczescie III: &f+%{_fortune3}%%%" to be unstealable
  81. format slot 31 of player with 1 of cobblestone named "&6&lKamien/bruk" with lore "&7Experience: &f%{_experience}% exp.||&7Wylatuje z kamienia/bruku: &f%colored {_cobblestone-stone-drop}%||||&7Kliknij, aby &f%colored {_cobblestone-stone-drop-help}% &7wylatywanie z kamienia/bruku" to run "nDrop:drop %player% cobble-stone"
  82. format slot 32 of player with 1 of enchanted book named "&6&lSuper drop" with lore "&7Super drop: &f+%{_superdrop}%%%||&7Aktywny dla Ciebie: &f%colored {_superdrop-permission}%" to be unstealable
  83. format slot 33 of player with 1 of enchanted book named "&6&lTurbo drop" with lore "&7Turbo drop: &f+%{_turbodrop}%%%||&7Aktywny: &f%colored {_turbodrop-active}%" to be unstealable
  84. format slot 34 of player with 1 of enchanted book named "&6&lTurbo experience" with lore "&7Turbo experience: &f+%{_turboexperience}% exp.||&7Aktywny: &f%colored {_turboexperience-active}%" to be unstealable
  85. if player has permission "nDrop.turbo-drop" or "nDrop.*":
  86. format slot 33 of player with 1 of enchanted book named "&6&lTurbo drop" with lore "&7Turbo drop: &f+%{_turbodrop}%%%||&7Aktywny: &f%colored {_turbodrop-active}%%colored {_turbodrop-help}%" to run "nDrop:drop %player% turbo-drop"
  87. if player has permission "nDrop.turbo-experience" or "nDrop.*":
  88. format slot 34 of player with 1 of enchanted book named "&6&lTurbo experience" with lore "&7Turbo experience: &f+%{_turboexperience}% exp.||&7Aktywny: &f%colored {_turboexperience-active}%" to run "nDrop:drop %player% turbo-experience"
  89. else:
  90. function "nDrop-permissions" {player and "nDrop.drop"}
  91. else:
  92. if arg 1 is set:
  93. set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
  94. if arg 2 is "turbo-drop":
  95. set {_turbodrop-active} to value "configuration.other.turbo-drop" get of "plugins/nDrop/configuration.yml"
  96. if {_turbodrop-active} is "true":
  97. set "configuration.other.turbo-drop" to "false" in yaml file "plugins/nDrop/configuration.yml"
  98. set {_msg} to value "configuration.messages.turbo-drop.disabled" get of "plugins/nDrop/configuration.yml"
  99. if {_turbodrop-active} is "false":
  100. set "configuration.other.turbo-drop" to "true" in yaml file "plugins/nDrop/configuration.yml"
  101. set {_msg} to value "configuration.messages.turbo-drop.enabled" get of "plugins/nDrop/configuration.yml"
  102. send "%colored {_tag}% %colored {_msg}%" to all players
  103. close arg 1's inventory
  104. wait 1 tick
  105. execute arg 1 command "drop"
  106. if arg 2 is "turbo-experience":
  107. set {_turboexperience-active} to value "configuration.other.turbo-experience" get of "plugins/nDrop/configuration.yml"
  108. if {_turboexperience-active} is "true":
  109. set "configuration.other.turbo-experience" to "false" in yaml file "plugins/nDrop/configuration.yml"
  110. set {_msg} to value "configuration.messages.turbo-experience.disabled" get of "plugins/nDrop/configuration.yml"
  111. if {_turboexperience-active} is "false":
  112. set "configuration.other.turbo-experience" to "true" in yaml file "plugins/nDrop/configuration.yml"
  113. set {_msg} to value "configuration.messages.turbo-experience.enabled" get of "plugins/nDrop/configuration.yml"
  114. send "%colored {_tag}% %colored {_msg}%" to all players
  115. close arg 1's inventory
  116. wait 1 tick
  117. execute arg 1 command "drop"
  118. if arg 2 is not "turbo-drop" or "turbo-experience":
  119. set {_drop} to value "drop.%arg 2%" get of "plugins/nDrop/players/%arg 1%.yml"
  120. if {_drop} is "true":
  121. set "drop.%arg 2%" to "false" in yaml file "plugins/nDrop/players/%arg 1%.yml"
  122. set {_msg} to value "configuration.messages.item-drop.%arg 2%.disabled" get of "plugins/nDrop/configuration.yml"
  123. if {_drop} is "false":
  124. set "drop.%arg 2%" to "true" in yaml file "plugins/nDrop/players/%arg 1%.yml"
  125. set {_msg} to value "configuration.messages.item-drop.%arg 2%.enabled" get of "plugins/nDrop/configuration.yml"
  126. send "%colored {_tag}% %colored {_msg}%" to arg 1
  127. close arg 1's inventory
  128. wait 1 tick
  129. execute arg 1 command "drop"
  130. command /nDrop:statistics [<text="%player%">]:
  131. description: nDrop » Statystyki kopania.
  132. aliases: statistics, stats, statystyki, staty
  133. trigger:
  134. if player has permission "nDrop.statistics" or "nDrop.*":
  135. if file "plugins/nDrop/players/%arg 1 parsed as offlineplayer%.yml" exists:
  136. open chest with 4 rows named "&bStatystyki" to player
  137. wait 1 tick
  138. format slot 4 of player with 1 of book named "&b&lStatystki %arg 1 parsed as offlineplayer%" to be unstealable
  139. add "coal" and "iron" and "lapis" and "gold" and "diamond" and "redstone" and "emerald" and "ender pearl" and "tnt" and "apple" and "bookshelf" and "raw fish" and "stone" and "points" and "level" and "needed" to {_gui1::*}
  140. loop {_gui1::*}:
  141. set {_gui::%loop-value%} to value "statistics.%loop-value%" get of "plugins/nDrop/players/%arg 1 parsed as offlineplayer%.yml"
  142. format slot 10 of player with 1 of coal item named "&6&lWegiel" with lore "&7Znaleziono: &f%{_gui::coal}% sztuk" to be unstealable
  143. format slot 11 of player with 1 of iron ingot named "&6&lZelazo" with lore "&7Znaleziono: &f%{_gui::iron}% sztuk" to be unstealable
  144. format slot 12 of player with 1 of lapis lazuli named "&6&lLazuryt" with lore "&7Znaleziono: &f%{_gui::lapis}% sztuk" to be unstealable
  145. format slot 13 of player with 1 of gold ingot named "&6&lZloto" with lore "&7Znaleziono: &f%{_gui::gold}% sztuk" to be unstealable
  146. format slot 14 of player with 1 of diamond named "&6&lDiamenty" with lore "&7Znaleziono: &f%{_gui::diamond}% sztuk" to be unstealable
  147. format slot 15 of player with 1 of redstone named "&6&lCzerwony kamien" with lore "&7Znaleziono: &f%{_gui::redstone}% sztuk" to be unstealable
  148. format slot 16 of player with 1 of emerald named "&6&lSzmaragdy" with lore "&7Znaleziono: &f%{_gui::emerald}% sztuk" to be unstealable
  149. format slot 19 of player with 1 of stone named "&6&lKamien" with lore "&7Wykopano: &f%{_gui::stone}% sztuk" to be unstealable
  150. format slot 20 of player with 1 of ender pearl named "&6&lPerly" with lore "&7Znaleziono: &f%{_gui::ender pearl}% sztuk" to be unstealable
  151. format slot 21 of player with 1 of tnt named "&6&lTNT" with lore "&7Znaleziono: &f%{_gui::tnt}% sztuk" to be unstealable
  152. format slot 22 of player with 1 of apple named "&6&lJablka" with lore "&7Znaleziono: &f%{_gui::apple}% sztuk" to be unstealable
  153. format slot 23 of player with 1 of bookshelf named "&6&lBiblioteczki" with lore "&7Znaleziono: &f%{_gui::bookshelf}% sztuk" to be unstealable
  154. format slot 24 of player with 1 of raw fish named "&6&lSurowe ryby" with lore "&7Znaleziono: &f%{_gui::raw fish}% sztuk" to be unstealable
  155. format slot 25 of player with 1 of xp bottle named "&6&lPoziom" with lore "&7Poziom: &f%{_gui::level}%||&7Punkty: &f%{_gui::points}%&7/&f%{_gui::needed}%" to be unstealable
  156. else:
  157. function "nDrop-playerNotFound" {player}
  158. else:
  159. function "nDrop-permissions" {player and "nDrop.statistics"}
  160. command /nDrop:top10 [<text="help">]:
  161. description: nDrop » Top10 znalezionych surowcow/wykopanego kamienia.
  162. aliases: top, top10, topka
  163. trigger:
  164. if player has permission "nDrop.top10" or "nDrop.*":
  165. if arg 1 is not "coal" or "iron" or "lapis" or "gold" or "diamond" or "redstone" or "emerald" or "ender pearl" or "tnt" or "apple" or "bookshelf" or "raw fish" or "stone" or "level":
  166. open chest with 4 rows named "&bTop 10" to player
  167. wait 1 tick
  168. format slot 4 of player with 1 of book named "&b&lTop 10 pomoc" to be unstealable
  169. format slot 10 of player with 1 of coal item named "&6&lWegiel" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionego wegla" to run [execute player command "nDrop:top10 coal"]
  170. format slot 11 of player with 1 of iron ingot named "&6&lZelazo" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionego zelaza" to run [execute player command "nDrop:top10 iron"]
  171. format slot 12 of player with 1 of lapis lazuli named "&6&lLazuryt" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionego lazurytu" to run [execute player command "nDrop:top10 lapis"]
  172. format slot 13 of player with 1 of gold ingot named "&6&lZloto" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionego zlota" to run [execute player command "nDrop:top10 gold"]
  173. format slot 14 of player with 1 of diamond named "&6&lDiamenty" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionych diamentow" to run [execute player command "nDrop:top10 diamond"]
  174. format slot 15 of player with 1 of redstone named "&6&lCzerwony kamien" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionego czerwonego kamienia" to run [execute player command "nDrop:top10 redstone"]
  175. format slot 16 of player with 1 of emerald named "&6&lSzmaragdy" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionych szmaragdow" to run [execute player command "nDrop:top10 emerald"]
  176. format slot 19 of player with 1 of stone named "&6&lKamien" with lore "||&7Kliknij, aby zobaczyc top 10 wykopanego kamienia" to run [execute player command "nDrop:top10 stone"]
  177. format slot 20 of player with 1 of ender pearl named "&6&lPerly" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionych perel" to run [execute player command "nDrop:top10 ender pearl"]
  178. format slot 21 of player with 1 of tnt named "&6&lTNT" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionego tnt" to run [execute player command "nDrop:top10 tnt"]
  179. format slot 22 of player with 1 of apple named "&6&lJablka" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionych jablek" to run [execute player command "nDrop:top10 apple"]
  180. format slot 23 of player with 1 of bookshelf named "&6&lBiblioteczki" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionych biblioteczek" to run [execute player command "nDrop:top10 bookshelf"]
  181. format slot 24 of player with 1 of raw fish named "&6&lSurowe ryby" with lore "||&7Kliknij, aby zobaczyc top 10 znalezionych surowych ryb" to run [execute player command "nDrop:top10 raw fish"]
  182. format slot 25 of player with 1 of xp bottle named "&6&lPoziom" with lore "||&7Kliknij, aby zobaczyc top 10 poziomow" to run [execute player command "nDrop:top10 level"]
  183. else:
  184. open chest with 4 rows named "&bTop 10" to player
  185. wait 1 tick
  186. set {_top-gui} to arg 1
  187. replace all "coal" with "znalezionego wegla" in {_top-gui}
  188. replace all "iron" with "znalezionego zelaza" in {_top-gui}
  189. replace all "lapis" with "znalezionego lazurytu" in {_top-gui}
  190. replace all "gold" with "znalezionego zlota" in {_top-gui}
  191. replace all "diamond" with "znalezionych diamentow" in {_top-gui}
  192. replace all "redstone" with "znalezionego czerwonego kamienia" in {_top-gui}
  193. replace all "emerald" with "znalezionych szmaragdow" in {_top-gui}
  194. replace all "ender pearl" with "znalezionych perel" in {_top-gui}
  195. replace all "tnt" with "znalezionego TNT" in {_top-gui}
  196. replace all "apple" with "znalezionych jablek" in {_top-gui}
  197. replace all "bookshelf" with "znalezionych biblioteczek" in {_top-gui}
  198. replace all "raw fish" with "znalezionych surowych ryb" in {_top-gui}
  199. replace all "stone" with "wykopanego kamienia" in {_top-gui}
  200. replace all "level" with "poziomow" in {_top-gui}
  201. format slot 4 of player with 1 of book named "&b&lTop 10 %{_top-gui}%" to be unstealable
  202. set {_files::*} to all files in "plugins/nDrop/players"
  203. loop {_files::*}:
  204. set {_value} to value "statistics.%arg 1%" get of "plugins/nDrop/players/%loop-value%" parsed as number
  205. set {_player.%loop-value%} to value "player" get of "plugins/nDrop/players/%loop-value%"
  206. set {_lista::%loop-value%} to {_value}
  207. set {_num} to size of {_lista::*}
  208. loop 10 times:
  209. loop {_lista::*}:
  210. if {_value.%loop-number%} is not set:
  211. set {_value.%loop-number%} to loop-value
  212. set {_nick.%loop-number%} to loop-index
  213. if loop-value is more than {_value.%loop-number%}:
  214. set {_value.%loop-number%} to loop-value
  215. set {_nick.%loop-number%} to loop-index
  216. replace all ".yml" with "" in {_nick.%loop-number%}
  217. remove {_value.%loop-number%} from {_lista::*}
  218. if loop-number <= {_num}:
  219. if loop-number is 1:
  220. set {_slot} to 12
  221. set {_item} to red wool
  222. set {_color} to "&c&l"
  223. if loop-number is 2:
  224. set {_slot} to 13
  225. set {_item} to orange wool
  226. set {_color} to "&6&l"
  227. if loop-number is 3:
  228. set {_slot} to 14
  229. set {_item} to yellow wool
  230. set {_color} to "&e&l"
  231. if loop-number is 4:
  232. set {_slot} to 19
  233. set {_item} to light green wool
  234. set {_color} to "&a&l"
  235. if loop-number is 5:
  236. set {_slot} to 20
  237. if loop-number is 6:
  238. set {_slot} to 21
  239. if loop-number is 7:
  240. set {_slot} to 22
  241. if loop-number is 8:
  242. set {_slot} to 23
  243. if loop-number is 9:
  244. set {_slot} to 24
  245. if loop-number is 10:
  246. set {_slot} to 25
  247. format slot {_slot} of player with 1 of {_item} named "%colored {_color}%%loop-number%. %{_player.%{_nick.%loop-number%}%.yml}%" with lore "&7Ilosc: &f%{_value.%loop-number%}%" to be unstealable
  248. else:
  249. function "nDrop-permissions" {player and "nDrop.top10"}
  250. on script load:
  251. if file "plugins/nDrop/configuration.yml" doesn't exists:
  252. create file "plugins/nDrop/configuration.yml"
  253. download from "http://pastebin.com/raw.php?i=tBGT1L4H" to "plugins/nDrop/configuration.yml"
  254. if folder "plugins/nDrop/players" doesn't exists:
  255. create folder "plugins/nDrop/players"
  256. loop all players:
  257. kick loop-player due to "&cWejdz ponownie na serwer!"
  258. send "[nDrop] Script loaded with version: 1.0 especially for DouDou." to console
  259. send "[nDrop] Author: xNorbi. http://norbieu.tk" to console
  260. set {_generator-enable} to value "configuration.generator.enable" get of "plugins/nDrop/configuration.yml"
  261. if {_generator-enable} is "true":
  262. set {_generator-result-number} to value "configuration.generator.crafting.result-number" get of "plugins/nDrop/configuration.yml" parsed as number
  263. loop 9 times:
  264. set {_generator-crafting.slot%loop-number%.amount} to value "configuration.generator.crafting.slot%loop-number%.amount" get of "plugins/nDrop/configuration.yml" parsed as number
  265. set {_generator-crafting.slot%loop-number%.item} to value "configuration.generator.crafting.slot%loop-number%.item" get of "plugins/nDrop/configuration.yml" parsed as item
  266. new Recipe "nDrop-Generator";
  267. "nDrop-Generator".Recipe.registerIngredient{1, {_generator-crafting.slot1.amount} of {_generator-crafting.slot1.item}}
  268. "nDrop-Generator".Recipe.registerIngredient{2, {_generator-crafting.slot2.amount} of {_generator-crafting.slot2.item}}
  269. "nDrop-Generator".Recipe.registerIngredient{3, {_generator-crafting.slot3.amount} of {_generator-crafting.slot3.item}}
  270. "nDrop-Generator".Recipe.registerIngredient{4, {_generator-crafting.slot4.amount} of {_generator-crafting.slot4.item}}
  271. "nDrop-Generator".Recipe.registerIngredient{5, {_generator-crafting.slot5.amount} of {_generator-crafting.slot5.item}}
  272. "nDrop-Generator".Recipe.registerIngredient{6, {_generator-crafting.slot6.amount} of {_generator-crafting.slot6.item}}
  273. "nDrop-Generator".Recipe.registerIngredient{7, {_generator-crafting.slot7.amount} of {_generator-crafting.slot7.item}}
  274. "nDrop-Generator".Recipe.registerIngredient{8, {_generator-crafting.slot8.amount} of {_generator-crafting.slot8.item}}
  275. "nDrop-Generator".Recipe.registerIngredient{9, {_generator-crafting.slot9.amount} of {_generator-crafting.slot9.item}}
  276. "nDrop-Generator".Recipe.registerResult{{_generator-result-number} of end stone}
  277. "nDrop-Generator".Recipe.register{}
  278. on break of coal ore or iron ore or lapis lazuli ore or gold ore or diamond ore or redstone ore or emerald ore:
  279. set {_ore-block} to "%event-block%"
  280. replace all " ore" and "active " and " lazuli" with "" in {_ore-block}
  281. set {_ore-drop} to value "configuration.drop.%{_ore-block}%.ore.drop" get of "plugins/nDrop/configuration.yml"
  282. if {_ore-drop} is "false":
  283. cancel event
  284. set {_ore-replace} to value "configuration.drop.%{_ore-block}%.ore.replace" get of "plugins/nDrop/configuration.yml"
  285. set event-block to {_ore-replace} parsed as item
  286. set {_ore-message} to value "configuration.drop.%{_ore-block}%.ore.message" get of "plugins/nDrop/configuration.yml"
  287. if {_ore-message} is not "":
  288. set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
  289. send "%colored {_tag}% %colored {_ore-message}%"
  290. on break of stone or cobblestone:
  291. if player's gamemode is survival:
  292. set {_drop-cobble} to value "drop.cobble-stone" get of "plugins/nDrop/players/%player%.yml"
  293. if {_drop-cobble} is "false":
  294. create file "plugins/nDrop/DROP_COBBLE_OFF.nDrop"
  295. on break of stone:
  296. if player's gamemode is survival:
  297. set {_stats-stone} to value "statistics.stone" get of "plugins/nDrop/players/%player%.yml" parsed as number
  298. add 1 to {_stats-stone}
  299. set "statistics.stone" to "%{_stats-stone}%" in yaml file "plugins/nDrop/players/%player%.yml"
  300. set {_experience} to value "configuration.other.experience" get of "plugins/nDrop/configuration.yml" parsed as number
  301. set {_turbo-experience} to value "configuration.other.turbo-experience" get of "plugins/nDrop/configuration.yml"
  302. if {_turbo-experience} is "true":
  303. set {_multiplier} to value "configuration.multiplier.turbo-experience" get of "plugins/nDrop/configuration.yml" parsed as number
  304. add {_multiplier} to {_experience}
  305. loop {_experience} times:
  306. give 1 exp to player
  307. add "coal" and "iron" and "lapis" and "gold" and "diamond" and "redstone" and "emerald" and "ender pearl" and "tnt" and "apple" and "bookshelf" and "raw fish" to {_drop1::*}
  308. loop {_drop1::*}:
  309. set {_chance::%loop-value%} to value "configuration.drop.%loop-value%.chance" get of "plugins/nDrop/configuration.yml" parsed as number
  310. loop {_chance::*}:
  311. set {_chance} to loop-value
  312. set {_amount} to 1
  313. if player's tool is any pickaxe of fortune 1:
  314. set {_multiplier} to value "configuration.multiplier.fortune1" get of "plugins/nDrop/configuration.yml" parsed as number
  315. add {_multiplier} to {_chance}
  316. set {_amount} to 2
  317. if player's tool is any pickaxe of fortune 2:
  318. set {_multiplier} to value "configuration.multiplier.fortune2" get of "plugins/nDrop/configuration.yml" parsed as number
  319. add {_multiplier} to {_chance}
  320. set {_amount} to 3
  321. if player's tool is any pickaxe of fortune 3:
  322. set {_multiplier} to value "configuration.multiplier.fortune3" get of "plugins/nDrop/configuration.yml" parsed as number
  323. add {_multiplier} to {_chance}
  324. set {_amount} to 4
  325. set {_turbo-drop} to value "configuration.other.turbo-drop" get of "plugins/nDrop/configuration.yml"
  326. if {_turbo-drop} is "true":
  327. set {_multiplier} to value "configuration.multiplier.turbo-drop" get of "plugins/nDrop/configuration.yml" parsed as number
  328. add {_multiplier} to {_chance}
  329. if player has permission "nDrop.super-drop":
  330. set {_multiplier} to value "configuration.multiplier.super-drop" get of "plugins/nDrop/configuration.yml" parsed as number
  331. add {_multiplier} to {_chance}
  332. if player's tool is any pickaxe of silk touch 1:
  333. set {_amount} to 0
  334. chance of {_chance}%:
  335. set {_height} to value "configuration.drop.%loop-index%.height" get of "plugins/nDrop/configuration.yml" parsed as number
  336. if y-coordinate of event-block is smaller than {_height} + 1:
  337. set {_pickaxe-tool} to "%type of player's tool%"
  338. replace all " pickaxe" and "en" with "" in {_pickaxe-tool}
  339. set {_pickaxe-config} to value "configuration.drop.%loop-index%.pickaxes.%{_pickaxe-tool}%" get of "plugins/nDrop/configuration.yml"
  340. if {_pickaxe-config} is "true":
  341. set {_drop-item} to value "drop.%loop-index%" get of "plugins/nDrop/players/%player%.yml"
  342. if {_drop-item} is "true":
  343. if {_amount} is 1 or 2 or 3 or 4:
  344. set {_item} to loop-index
  345. replace all "iron" with "iron ingot" in {_item}
  346. replace all "lapis" with "lapis lazuli" in {_item}
  347. replace all "gold" with "gold ingot" in {_item}
  348. if player can hold {_amount} of {_item} parsed as item:
  349. give {_amount} of {_item} parsed as item to player
  350. else:
  351. drop {_amount} of {_item} parsed as item at event-location
  352. set {_drop} to value "configuration.messages.drop" get of "plugins/nDrop/configuration.yml"
  353. if {_drop} is not "":
  354. set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
  355. replace all "{amount}" with "%{_amount}%" in {_drop}
  356. replace all "{item}" with "%loop-index%" in {_drop}
  357. replace all "{points}" with "%{_amount}%" in {_drop}
  358. send "%colored {_tag}% %colored {_drop}%"
  359. if {_amount} is 0:
  360. set {_item} to loop-index
  361. set {_item} to "%{_item}% ore"
  362. if player can hold 1 of {_item} parsed as item:
  363. give 1 of {_item} parsed as item to player
  364. else:
  365. drop 1 of {_item} parsed as item at event-location
  366. set {_drop} to value "configuration.messages.drop" get of "plugins/nDrop/configuration.yml"
  367. if {_drop} is not "":
  368. set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
  369. replace all "{amount}" with "1" in {_drop}
  370. replace all "{item}" with "%loop-index% ore" in {_drop}
  371. replace all "{points}" with "1" in {_drop}
  372. send "%colored {_tag}% %colored {_drop}%"
  373. set {_stats-item} to value "statistics.%loop-index%" get of "plugins/nDrop/players/%player%.yml" parsed as number
  374. add {_amount} to {_stats-item}
  375. set "statistics.%loop-index%" to "%{_stats-item}%" in yaml file "plugins/nDrop/players/%player%.yml"
  376. set {_level-enabled} to value "configuration.level.enable" get of "plugins/nDrop/configuration.yml"
  377. if {_level-enabled} is "true":
  378. set {_level-points} to value "statistics.points" get of "plugins/nDrop/players/%player%.yml" parsed as number
  379. add {_amount} to {_level-points}
  380. add 1 to {_level-points}
  381. set "statistics.points" to "%{_level-points}%" in yaml file "plugins/nDrop/players/%player%.yml"
  382. set {_level-needed} to value "statistics.needed" get of "plugins/nDrop/players/%player%.yml" parsed as number
  383. if {_level-points} is greater or equal to {_level-needed}:
  384. set "statistics.points" to "0" in yaml file "plugins/nDrop/players/%player%.yml"
  385. set {_level-level} to value "statistics.level" get of "plugins/nDrop/players/%player%.yml" parsed as number
  386. add 1 to {_level-level}
  387. set "statistics.level" to "%{_level-level}%" in yaml file "plugins/nDrop/players/%player%.yml"
  388. set {_level-needed-configuration} to value "configuration.level.needed" get of "plugins/nDrop/configuration.yml" parsed as number
  389. set {_level-needed-player} to value "statistics.needed" get of "plugins/nDrop/players/%player%.yml" parsed as number
  390. add {_level-needed-configuration} to {_level-needed-player}
  391. set "statistics.needed" to "%{_level-needed-player}%" in yaml file "plugins/nDrop/players/%player%.yml"
  392. set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
  393. set {_msg} to value "configuration.messages.newlevel" get of "plugins/nDrop/configuration.yml"
  394. replace all "{player}" with "%player%" in {_msg}
  395. replace all "{level}" with "%{_level-level}%" in {_msg}
  396. send "%colored {_tag}% %colored {_msg}%" to all players
  397. play raw sound "random.levelup" at player with pitch 1 volume 0.1
  398. set {_generator-enable} to value "configuration.generator.enable" get of "plugins/nDrop/configuration.yml"
  399. if {_generator-enable} is "true":
  400. set {_generator-regeneration-time} to value "configuration.generator.regeneration-time" get of "plugins/nDrop/configuration.yml" parsed as number
  401. set {_loc.%event-location%} to event-location
  402. loop {_generator-regeneration-time} times:
  403. wait 1 tick
  404. if block under {_loc.%event-location%} is end stone:
  405. if block at {_loc.%event-location%} is air:
  406. set block at {_loc.%event-location%} to stone
  407. on item spawn of stone or cobblestone:
  408. if file "plugins/nDrop/DROP_COBBLE_OFF.nDrop" exists:
  409. cancel event
  410. delete file "plugins/nDrop/DROP_COBBLE_OFF.nDrop"
  411. on place of end stone:
  412. set {_generator-enable} to value "configuration.generator.enable" get of "plugins/nDrop/configuration.yml"
  413. if {_generator-enable} is "true":
  414. if block at event-block is end stone:
  415. if block above event-block is air:
  416. set block above event-block to stone
  417. on join:
  418. function "nDrop-reloadPlayerFiles" {player}
  419. function "nDrop-reloadPlayerFiles" {}:
  420. set {_player} to arg{1}
  421. wait 1 tick
  422. if file "plugins/nDrop/players/%{_player}%.yml" doesn't exists:
  423. create file "plugins/nDrop/players/%{_player}%.yml"
  424. set "player" to "%{_player}%" in yaml file "plugins/nDrop/players/%{_player}%.yml"
  425. add "coal" and "iron" and "lapis" and "gold" and "diamond" and "redstone" and "emerald" and "ender pearl" and "tnt" and "apple" and "bookshelf" and "raw fish" and "stone" and "points" to {_file::*}
  426. loop {_file::*}:
  427. set "statistics.%loop-value%" to "0" in yaml file "plugins/nDrop/players/%{_player}%.yml"
  428. add "coal" and "iron" and "lapis" and "gold" and "diamond" and "redstone" and "emerald" and "ender pearl" and "tnt" and "apple" and "bookshelf" and "raw fish" and "cobble-stone" to {_file2::*}
  429. loop {_file2::*}:
  430. set "drop.%loop-value%" to "true" in yaml file "plugins/nDrop/players/%{_player}%.yml"
  431. set {_level-enabled} to value "configuration.level.enable" get of "plugins/nDrop/configuration.yml"
  432. if {_level-enabled} is "true":
  433. set "statistics.level" to "1" in yaml file "plugins/nDrop/players/%{_player}%.yml"
  434. set {_needed} to value "configuration.level.needed" get of "plugins/nDrop/configuration.yml"
  435. set "statistics.needed" to "%{_needed}%" in yaml file "plugins/nDrop/players/%{_player}%.yml"
  436. function "nDrop-permissions" {}:
  437. set {_player} to arg{1}
  438. set {_permission} to arg{2}
  439. set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
  440. set {_msg} to value "configuration.messages.nopermission" get of "plugins/nDrop/configuration.yml"
  441. replace all "{permission}" with "%{_permission}%" in {_msg}
  442. send "%colored {_tag}% %colored {_msg}%" to {_player}
  443. function "nDrop-playerNotFound" {}:
  444. set {_player} to arg{1}
  445. set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
  446. set {_msg} to value "configuration.messages.playernotfound" get of "plugins/nDrop/configuration.yml"
  447. send "%colored {_tag}% %colored {_msg}%" to {_player}
Advertisement
Add Comment
Please, Sign In to add comment