Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /nDrop:drop [<player>] [<text>]:
- description: nDrop » Informacje o dropie ze stone.
- aliases: drop, kamien, stone
- trigger:
- if executor is player:
- if player has permission "nDrop.drop" or "nDrop.*":
- open chest with 4 rows named "&bDrop ze stone" to player
- wait 1 tick
- format slot 5 of player with 1 of book named "&b&lDrop ze stone" to be unstealable
- 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::*}
- loop {_gui1::*}:
- set {_gui::%loop-value%::chance} to value "configuration.drop.%loop-value%.chance" get of "plugins/nDrop/configuration.yml"
- set {_gui::%loop-value%::height} to value "configuration.drop.%loop-value%.height" get of "plugins/nDrop/configuration.yml"
- set {_gui::%loop-value%::woodpickaxe} to value "configuration.drop.%loop-value%.pickaxes.wood" get of "plugins/nDrop/configuration.yml"
- set {_gui::%loop-value%::stonepickaxe} to value "configuration.drop.%loop-value%.pickaxes.stone" get of "plugins/nDrop/configuration.yml"
- set {_gui::%loop-value%::ironpickaxe} to value "configuration.drop.%loop-value%.pickaxes.iron" get of "plugins/nDrop/configuration.yml"
- set {_gui::%loop-value%::goldpickaxe} to value "configuration.drop.%loop-value%.pickaxes.gold" get of "plugins/nDrop/configuration.yml"
- set {_gui::%loop-value%::diamondpickaxe} to value "configuration.drop.%loop-value%.pickaxes.diamond" get of "plugins/nDrop/configuration.yml"
- set {_gui::%loop-value%::ore} to value "configuration.drop.%loop-value%.ore.drop" get of "plugins/nDrop/configuration.yml"
- set {_gui::%loop-value%::drop} to value "drop.%loop-value%" get of "plugins/nDrop/players/%player%.yml"
- set {_cobblestone-stone-drop} to value "drop.cobble-stone" get of "plugins/nDrop/players/%player%.yml"
- set {_fortune1} to value "configuration.multiplier.fortune1" get of "plugins/nDrop/configuration.yml"
- set {_fortune2} to value "configuration.multiplier.fortune2" get of "plugins/nDrop/configuration.yml"
- set {_fortune3} to value "configuration.multiplier.fortune3" get of "plugins/nDrop/configuration.yml"
- set {_superdrop} to value "configuration.multiplier.super-drop" get of "plugins/nDrop/configuration.yml"
- set {_turbodrop} to value "configuration.multiplier.turbo-drop" get of "plugins/nDrop/configuration.yml"
- set {_turbodrop-active} to value "configuration.other.turbo-drop" get of "plugins/nDrop/configuration.yml"
- set {_turboexperience} to value "configuration.multiplier.turbo-drop" get of "plugins/nDrop/configuration.yml"
- set {_turboexperience-active} to value "configuration.other.turbo-experience" get of "plugins/nDrop/configuration.yml"
- set {_experience} to value "configuration.other.experience" get of "plugins/nDrop/configuration.yml"
- set {_turbodrop-help} to ""
- if player has permission "nDrop.super-drop" or "nDrop.*":
- set {_superdrop-permission} to "&atak"
- else:
- set {_superdrop-permission} to "&cnie"
- if {_turbodrop-active} is "true":
- set {_turbodrop-active} to "&atak"
- if player has permission "nDrop.turbo-drop" or "nDrop.*":
- set {_turbodrop-help} to "||||&7Kliknij, aby &cwylaczyc &7turbo drop"
- else:
- set {_turbodrop-active} to "&cnie"
- if player has permission "nDrop.turbo-drop" or "nDrop.*":
- set {_turbodrop-help} to "||||&7Kliknij, aby &awlaczyc &7turbo drop"
- if {_turboexperience-active} is "true":
- set {_turboexperience-active} to "&atak"
- if player has permission "nDrop.turbo-experience" or "nDrop.*":
- set {_turboexperience-help} to "||||&7Kliknij, aby &cwylaczyc &7turbo experience"
- else:
- set {_turboexperience-active} to "&cnie"
- if player has permission "nDrop.turbo-experience" or "nDrop.*":
- set {_turboexperience-help} to "||||&7Kliknij, aby &awlaczyc &7turbo experience"
- loop {_gui1::*}:
- loop {_gui::%loop-value-1%::*}:
- if {_gui::%loop-value-1%::%loop-index-2%} is "true":
- set {_gui::%loop-value-1%::%loop-index-2%} to "&atak"
- set {_gui::%loop-value-1%::%loop-index-2%-help} to "&cwylaczyc"
- if {_gui::%loop-value-1%::%loop-index-2%} is "false":
- set {_gui::%loop-value-1%::%loop-index-2%} to "&cnie"
- set {_gui::%loop-value-1%::%loop-index-2%-help} to "&awlaczyc"
- if {_cobblestone-stone-drop} is "true":
- set {_cobblestone-stone-drop} to "&atak"
- set {_cobblestone-stone-drop-help} to "&cwylaczyc"
- if {_cobblestone-stone-drop} is "false":
- set {_cobblestone-stone-drop} to "&cnie"
- set {_cobblestone-stone-drop-help} to "&awlaczyc"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- format slot 28 of player with 1 of enchanted book named "&6&lSzczescie I" with lore "&7Szczescie I: &f+%{_fortune1}%%%" to be unstealable
- format slot 29 of player with 1 of enchanted book named "&6&lSzczescie II" with lore "&7Szczescie II: &f+%{_fortune2}%%%" to be unstealable
- format slot 30 of player with 1 of enchanted book named "&6&lSzczescie III" with lore "&7Szczescie III: &f+%{_fortune3}%%%" to be unstealable
- 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"
- 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
- 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
- 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
- if player has permission "nDrop.turbo-drop" or "nDrop.*":
- 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"
- if player has permission "nDrop.turbo-experience" or "nDrop.*":
- 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"
- else:
- function "nDrop-permissions" {player and "nDrop.drop"}
- else:
- if arg 1 is set:
- set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
- if arg 2 is "turbo-drop":
- set {_turbodrop-active} to value "configuration.other.turbo-drop" get of "plugins/nDrop/configuration.yml"
- if {_turbodrop-active} is "true":
- set "configuration.other.turbo-drop" to "false" in yaml file "plugins/nDrop/configuration.yml"
- set {_msg} to value "configuration.messages.turbo-drop.disabled" get of "plugins/nDrop/configuration.yml"
- if {_turbodrop-active} is "false":
- set "configuration.other.turbo-drop" to "true" in yaml file "plugins/nDrop/configuration.yml"
- set {_msg} to value "configuration.messages.turbo-drop.enabled" get of "plugins/nDrop/configuration.yml"
- send "%colored {_tag}% %colored {_msg}%" to all players
- close arg 1's inventory
- wait 1 tick
- execute arg 1 command "drop"
- if arg 2 is "turbo-experience":
- set {_turboexperience-active} to value "configuration.other.turbo-experience" get of "plugins/nDrop/configuration.yml"
- if {_turboexperience-active} is "true":
- set "configuration.other.turbo-experience" to "false" in yaml file "plugins/nDrop/configuration.yml"
- set {_msg} to value "configuration.messages.turbo-experience.disabled" get of "plugins/nDrop/configuration.yml"
- if {_turboexperience-active} is "false":
- set "configuration.other.turbo-experience" to "true" in yaml file "plugins/nDrop/configuration.yml"
- set {_msg} to value "configuration.messages.turbo-experience.enabled" get of "plugins/nDrop/configuration.yml"
- send "%colored {_tag}% %colored {_msg}%" to all players
- close arg 1's inventory
- wait 1 tick
- execute arg 1 command "drop"
- if arg 2 is not "turbo-drop" or "turbo-experience":
- set {_drop} to value "drop.%arg 2%" get of "plugins/nDrop/players/%arg 1%.yml"
- if {_drop} is "true":
- set "drop.%arg 2%" to "false" in yaml file "plugins/nDrop/players/%arg 1%.yml"
- set {_msg} to value "configuration.messages.item-drop.%arg 2%.disabled" get of "plugins/nDrop/configuration.yml"
- if {_drop} is "false":
- set "drop.%arg 2%" to "true" in yaml file "plugins/nDrop/players/%arg 1%.yml"
- set {_msg} to value "configuration.messages.item-drop.%arg 2%.enabled" get of "plugins/nDrop/configuration.yml"
- send "%colored {_tag}% %colored {_msg}%" to arg 1
- close arg 1's inventory
- wait 1 tick
- execute arg 1 command "drop"
- command /nDrop:statistics [<text="%player%">]:
- description: nDrop » Statystyki kopania.
- aliases: statistics, stats, statystyki, staty
- trigger:
- if player has permission "nDrop.statistics" or "nDrop.*":
- if file "plugins/nDrop/players/%arg 1 parsed as offlineplayer%.yml" exists:
- open chest with 4 rows named "&bStatystyki" to player
- wait 1 tick
- format slot 4 of player with 1 of book named "&b&lStatystki %arg 1 parsed as offlineplayer%" to be unstealable
- 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::*}
- loop {_gui1::*}:
- set {_gui::%loop-value%} to value "statistics.%loop-value%" get of "plugins/nDrop/players/%arg 1 parsed as offlineplayer%.yml"
- format slot 10 of player with 1 of coal item named "&6&lWegiel" with lore "&7Znaleziono: &f%{_gui::coal}% sztuk" to be unstealable
- format slot 11 of player with 1 of iron ingot named "&6&lZelazo" with lore "&7Znaleziono: &f%{_gui::iron}% sztuk" to be unstealable
- format slot 12 of player with 1 of lapis lazuli named "&6&lLazuryt" with lore "&7Znaleziono: &f%{_gui::lapis}% sztuk" to be unstealable
- format slot 13 of player with 1 of gold ingot named "&6&lZloto" with lore "&7Znaleziono: &f%{_gui::gold}% sztuk" to be unstealable
- format slot 14 of player with 1 of diamond named "&6&lDiamenty" with lore "&7Znaleziono: &f%{_gui::diamond}% sztuk" to be unstealable
- format slot 15 of player with 1 of redstone named "&6&lCzerwony kamien" with lore "&7Znaleziono: &f%{_gui::redstone}% sztuk" to be unstealable
- format slot 16 of player with 1 of emerald named "&6&lSzmaragdy" with lore "&7Znaleziono: &f%{_gui::emerald}% sztuk" to be unstealable
- format slot 19 of player with 1 of stone named "&6&lKamien" with lore "&7Wykopano: &f%{_gui::stone}% sztuk" to be unstealable
- format slot 20 of player with 1 of ender pearl named "&6&lPerly" with lore "&7Znaleziono: &f%{_gui::ender pearl}% sztuk" to be unstealable
- format slot 21 of player with 1 of tnt named "&6&lTNT" with lore "&7Znaleziono: &f%{_gui::tnt}% sztuk" to be unstealable
- format slot 22 of player with 1 of apple named "&6&lJablka" with lore "&7Znaleziono: &f%{_gui::apple}% sztuk" to be unstealable
- format slot 23 of player with 1 of bookshelf named "&6&lBiblioteczki" with lore "&7Znaleziono: &f%{_gui::bookshelf}% sztuk" to be unstealable
- 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
- 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
- else:
- function "nDrop-playerNotFound" {player}
- else:
- function "nDrop-permissions" {player and "nDrop.statistics"}
- command /nDrop:top10 [<text="help">]:
- description: nDrop » Top10 znalezionych surowcow/wykopanego kamienia.
- aliases: top, top10, topka
- trigger:
- if player has permission "nDrop.top10" or "nDrop.*":
- 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":
- open chest with 4 rows named "&bTop 10" to player
- wait 1 tick
- format slot 4 of player with 1 of book named "&b&lTop 10 pomoc" to be unstealable
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- 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"]
- else:
- open chest with 4 rows named "&bTop 10" to player
- wait 1 tick
- set {_top-gui} to arg 1
- replace all "coal" with "znalezionego wegla" in {_top-gui}
- replace all "iron" with "znalezionego zelaza" in {_top-gui}
- replace all "lapis" with "znalezionego lazurytu" in {_top-gui}
- replace all "gold" with "znalezionego zlota" in {_top-gui}
- replace all "diamond" with "znalezionych diamentow" in {_top-gui}
- replace all "redstone" with "znalezionego czerwonego kamienia" in {_top-gui}
- replace all "emerald" with "znalezionych szmaragdow" in {_top-gui}
- replace all "ender pearl" with "znalezionych perel" in {_top-gui}
- replace all "tnt" with "znalezionego TNT" in {_top-gui}
- replace all "apple" with "znalezionych jablek" in {_top-gui}
- replace all "bookshelf" with "znalezionych biblioteczek" in {_top-gui}
- replace all "raw fish" with "znalezionych surowych ryb" in {_top-gui}
- replace all "stone" with "wykopanego kamienia" in {_top-gui}
- replace all "level" with "poziomow" in {_top-gui}
- format slot 4 of player with 1 of book named "&b&lTop 10 %{_top-gui}%" to be unstealable
- set {_files::*} to all files in "plugins/nDrop/players"
- loop {_files::*}:
- set {_value} to value "statistics.%arg 1%" get of "plugins/nDrop/players/%loop-value%" parsed as number
- set {_player.%loop-value%} to value "player" get of "plugins/nDrop/players/%loop-value%"
- set {_lista::%loop-value%} to {_value}
- set {_num} to size of {_lista::*}
- loop 10 times:
- loop {_lista::*}:
- if {_value.%loop-number%} is not set:
- set {_value.%loop-number%} to loop-value
- set {_nick.%loop-number%} to loop-index
- if loop-value is more than {_value.%loop-number%}:
- set {_value.%loop-number%} to loop-value
- set {_nick.%loop-number%} to loop-index
- replace all ".yml" with "" in {_nick.%loop-number%}
- remove {_value.%loop-number%} from {_lista::*}
- if loop-number <= {_num}:
- if loop-number is 1:
- set {_slot} to 12
- set {_item} to red wool
- set {_color} to "&c&l"
- if loop-number is 2:
- set {_slot} to 13
- set {_item} to orange wool
- set {_color} to "&6&l"
- if loop-number is 3:
- set {_slot} to 14
- set {_item} to yellow wool
- set {_color} to "&e&l"
- if loop-number is 4:
- set {_slot} to 19
- set {_item} to light green wool
- set {_color} to "&a&l"
- if loop-number is 5:
- set {_slot} to 20
- if loop-number is 6:
- set {_slot} to 21
- if loop-number is 7:
- set {_slot} to 22
- if loop-number is 8:
- set {_slot} to 23
- if loop-number is 9:
- set {_slot} to 24
- if loop-number is 10:
- set {_slot} to 25
- 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
- else:
- function "nDrop-permissions" {player and "nDrop.top10"}
- on script load:
- if file "plugins/nDrop/configuration.yml" doesn't exists:
- create file "plugins/nDrop/configuration.yml"
- download from "http://pastebin.com/raw.php?i=tBGT1L4H" to "plugins/nDrop/configuration.yml"
- if folder "plugins/nDrop/players" doesn't exists:
- create folder "plugins/nDrop/players"
- loop all players:
- kick loop-player due to "&cWejdz ponownie na serwer!"
- send "[nDrop] Script loaded with version: 1.0 especially for DouDou." to console
- send "[nDrop] Author: xNorbi. http://norbieu.tk" to console
- set {_generator-enable} to value "configuration.generator.enable" get of "plugins/nDrop/configuration.yml"
- if {_generator-enable} is "true":
- set {_generator-result-number} to value "configuration.generator.crafting.result-number" get of "plugins/nDrop/configuration.yml" parsed as number
- loop 9 times:
- 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
- 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
- new Recipe "nDrop-Generator";
- "nDrop-Generator".Recipe.registerIngredient{1, {_generator-crafting.slot1.amount} of {_generator-crafting.slot1.item}}
- "nDrop-Generator".Recipe.registerIngredient{2, {_generator-crafting.slot2.amount} of {_generator-crafting.slot2.item}}
- "nDrop-Generator".Recipe.registerIngredient{3, {_generator-crafting.slot3.amount} of {_generator-crafting.slot3.item}}
- "nDrop-Generator".Recipe.registerIngredient{4, {_generator-crafting.slot4.amount} of {_generator-crafting.slot4.item}}
- "nDrop-Generator".Recipe.registerIngredient{5, {_generator-crafting.slot5.amount} of {_generator-crafting.slot5.item}}
- "nDrop-Generator".Recipe.registerIngredient{6, {_generator-crafting.slot6.amount} of {_generator-crafting.slot6.item}}
- "nDrop-Generator".Recipe.registerIngredient{7, {_generator-crafting.slot7.amount} of {_generator-crafting.slot7.item}}
- "nDrop-Generator".Recipe.registerIngredient{8, {_generator-crafting.slot8.amount} of {_generator-crafting.slot8.item}}
- "nDrop-Generator".Recipe.registerIngredient{9, {_generator-crafting.slot9.amount} of {_generator-crafting.slot9.item}}
- "nDrop-Generator".Recipe.registerResult{{_generator-result-number} of end stone}
- "nDrop-Generator".Recipe.register{}
- on break of coal ore or iron ore or lapis lazuli ore or gold ore or diamond ore or redstone ore or emerald ore:
- set {_ore-block} to "%event-block%"
- replace all " ore" and "active " and " lazuli" with "" in {_ore-block}
- set {_ore-drop} to value "configuration.drop.%{_ore-block}%.ore.drop" get of "plugins/nDrop/configuration.yml"
- if {_ore-drop} is "false":
- cancel event
- set {_ore-replace} to value "configuration.drop.%{_ore-block}%.ore.replace" get of "plugins/nDrop/configuration.yml"
- set event-block to {_ore-replace} parsed as item
- set {_ore-message} to value "configuration.drop.%{_ore-block}%.ore.message" get of "plugins/nDrop/configuration.yml"
- if {_ore-message} is not "":
- set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
- send "%colored {_tag}% %colored {_ore-message}%"
- on break of stone or cobblestone:
- if player's gamemode is survival:
- set {_drop-cobble} to value "drop.cobble-stone" get of "plugins/nDrop/players/%player%.yml"
- if {_drop-cobble} is "false":
- create file "plugins/nDrop/DROP_COBBLE_OFF.nDrop"
- on break of stone:
- if player's gamemode is survival:
- set {_stats-stone} to value "statistics.stone" get of "plugins/nDrop/players/%player%.yml" parsed as number
- add 1 to {_stats-stone}
- set "statistics.stone" to "%{_stats-stone}%" in yaml file "plugins/nDrop/players/%player%.yml"
- set {_experience} to value "configuration.other.experience" get of "plugins/nDrop/configuration.yml" parsed as number
- set {_turbo-experience} to value "configuration.other.turbo-experience" get of "plugins/nDrop/configuration.yml"
- if {_turbo-experience} is "true":
- set {_multiplier} to value "configuration.multiplier.turbo-experience" get of "plugins/nDrop/configuration.yml" parsed as number
- add {_multiplier} to {_experience}
- loop {_experience} times:
- give 1 exp to player
- 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::*}
- loop {_drop1::*}:
- set {_chance::%loop-value%} to value "configuration.drop.%loop-value%.chance" get of "plugins/nDrop/configuration.yml" parsed as number
- loop {_chance::*}:
- set {_chance} to loop-value
- set {_amount} to 1
- if player's tool is any pickaxe of fortune 1:
- set {_multiplier} to value "configuration.multiplier.fortune1" get of "plugins/nDrop/configuration.yml" parsed as number
- add {_multiplier} to {_chance}
- set {_amount} to 2
- if player's tool is any pickaxe of fortune 2:
- set {_multiplier} to value "configuration.multiplier.fortune2" get of "plugins/nDrop/configuration.yml" parsed as number
- add {_multiplier} to {_chance}
- set {_amount} to 3
- if player's tool is any pickaxe of fortune 3:
- set {_multiplier} to value "configuration.multiplier.fortune3" get of "plugins/nDrop/configuration.yml" parsed as number
- add {_multiplier} to {_chance}
- set {_amount} to 4
- set {_turbo-drop} to value "configuration.other.turbo-drop" get of "plugins/nDrop/configuration.yml"
- if {_turbo-drop} is "true":
- set {_multiplier} to value "configuration.multiplier.turbo-drop" get of "plugins/nDrop/configuration.yml" parsed as number
- add {_multiplier} to {_chance}
- if player has permission "nDrop.super-drop":
- set {_multiplier} to value "configuration.multiplier.super-drop" get of "plugins/nDrop/configuration.yml" parsed as number
- add {_multiplier} to {_chance}
- if player's tool is any pickaxe of silk touch 1:
- set {_amount} to 0
- chance of {_chance}%:
- set {_height} to value "configuration.drop.%loop-index%.height" get of "plugins/nDrop/configuration.yml" parsed as number
- if y-coordinate of event-block is smaller than {_height} + 1:
- set {_pickaxe-tool} to "%type of player's tool%"
- replace all " pickaxe" and "en" with "" in {_pickaxe-tool}
- set {_pickaxe-config} to value "configuration.drop.%loop-index%.pickaxes.%{_pickaxe-tool}%" get of "plugins/nDrop/configuration.yml"
- if {_pickaxe-config} is "true":
- set {_drop-item} to value "drop.%loop-index%" get of "plugins/nDrop/players/%player%.yml"
- if {_drop-item} is "true":
- if {_amount} is 1 or 2 or 3 or 4:
- set {_item} to loop-index
- replace all "iron" with "iron ingot" in {_item}
- replace all "lapis" with "lapis lazuli" in {_item}
- replace all "gold" with "gold ingot" in {_item}
- if player can hold {_amount} of {_item} parsed as item:
- give {_amount} of {_item} parsed as item to player
- else:
- drop {_amount} of {_item} parsed as item at event-location
- set {_drop} to value "configuration.messages.drop" get of "plugins/nDrop/configuration.yml"
- if {_drop} is not "":
- set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
- replace all "{amount}" with "%{_amount}%" in {_drop}
- replace all "{item}" with "%loop-index%" in {_drop}
- replace all "{points}" with "%{_amount}%" in {_drop}
- send "%colored {_tag}% %colored {_drop}%"
- if {_amount} is 0:
- set {_item} to loop-index
- set {_item} to "%{_item}% ore"
- if player can hold 1 of {_item} parsed as item:
- give 1 of {_item} parsed as item to player
- else:
- drop 1 of {_item} parsed as item at event-location
- set {_drop} to value "configuration.messages.drop" get of "plugins/nDrop/configuration.yml"
- if {_drop} is not "":
- set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
- replace all "{amount}" with "1" in {_drop}
- replace all "{item}" with "%loop-index% ore" in {_drop}
- replace all "{points}" with "1" in {_drop}
- send "%colored {_tag}% %colored {_drop}%"
- set {_stats-item} to value "statistics.%loop-index%" get of "plugins/nDrop/players/%player%.yml" parsed as number
- add {_amount} to {_stats-item}
- set "statistics.%loop-index%" to "%{_stats-item}%" in yaml file "plugins/nDrop/players/%player%.yml"
- set {_level-enabled} to value "configuration.level.enable" get of "plugins/nDrop/configuration.yml"
- if {_level-enabled} is "true":
- set {_level-points} to value "statistics.points" get of "plugins/nDrop/players/%player%.yml" parsed as number
- add {_amount} to {_level-points}
- add 1 to {_level-points}
- set "statistics.points" to "%{_level-points}%" in yaml file "plugins/nDrop/players/%player%.yml"
- set {_level-needed} to value "statistics.needed" get of "plugins/nDrop/players/%player%.yml" parsed as number
- if {_level-points} is greater or equal to {_level-needed}:
- set "statistics.points" to "0" in yaml file "plugins/nDrop/players/%player%.yml"
- set {_level-level} to value "statistics.level" get of "plugins/nDrop/players/%player%.yml" parsed as number
- add 1 to {_level-level}
- set "statistics.level" to "%{_level-level}%" in yaml file "plugins/nDrop/players/%player%.yml"
- set {_level-needed-configuration} to value "configuration.level.needed" get of "plugins/nDrop/configuration.yml" parsed as number
- set {_level-needed-player} to value "statistics.needed" get of "plugins/nDrop/players/%player%.yml" parsed as number
- add {_level-needed-configuration} to {_level-needed-player}
- set "statistics.needed" to "%{_level-needed-player}%" in yaml file "plugins/nDrop/players/%player%.yml"
- set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
- set {_msg} to value "configuration.messages.newlevel" get of "plugins/nDrop/configuration.yml"
- replace all "{player}" with "%player%" in {_msg}
- replace all "{level}" with "%{_level-level}%" in {_msg}
- send "%colored {_tag}% %colored {_msg}%" to all players
- play raw sound "random.levelup" at player with pitch 1 volume 0.1
- set {_generator-enable} to value "configuration.generator.enable" get of "plugins/nDrop/configuration.yml"
- if {_generator-enable} is "true":
- set {_generator-regeneration-time} to value "configuration.generator.regeneration-time" get of "plugins/nDrop/configuration.yml" parsed as number
- set {_loc.%event-location%} to event-location
- loop {_generator-regeneration-time} times:
- wait 1 tick
- if block under {_loc.%event-location%} is end stone:
- if block at {_loc.%event-location%} is air:
- set block at {_loc.%event-location%} to stone
- on item spawn of stone or cobblestone:
- if file "plugins/nDrop/DROP_COBBLE_OFF.nDrop" exists:
- cancel event
- delete file "plugins/nDrop/DROP_COBBLE_OFF.nDrop"
- on place of end stone:
- set {_generator-enable} to value "configuration.generator.enable" get of "plugins/nDrop/configuration.yml"
- if {_generator-enable} is "true":
- if block at event-block is end stone:
- if block above event-block is air:
- set block above event-block to stone
- on join:
- function "nDrop-reloadPlayerFiles" {player}
- function "nDrop-reloadPlayerFiles" {}:
- set {_player} to arg{1}
- wait 1 tick
- if file "plugins/nDrop/players/%{_player}%.yml" doesn't exists:
- create file "plugins/nDrop/players/%{_player}%.yml"
- set "player" to "%{_player}%" in yaml file "plugins/nDrop/players/%{_player}%.yml"
- 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::*}
- loop {_file::*}:
- set "statistics.%loop-value%" to "0" in yaml file "plugins/nDrop/players/%{_player}%.yml"
- 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::*}
- loop {_file2::*}:
- set "drop.%loop-value%" to "true" in yaml file "plugins/nDrop/players/%{_player}%.yml"
- set {_level-enabled} to value "configuration.level.enable" get of "plugins/nDrop/configuration.yml"
- if {_level-enabled} is "true":
- set "statistics.level" to "1" in yaml file "plugins/nDrop/players/%{_player}%.yml"
- set {_needed} to value "configuration.level.needed" get of "plugins/nDrop/configuration.yml"
- set "statistics.needed" to "%{_needed}%" in yaml file "plugins/nDrop/players/%{_player}%.yml"
- function "nDrop-permissions" {}:
- set {_player} to arg{1}
- set {_permission} to arg{2}
- set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
- set {_msg} to value "configuration.messages.nopermission" get of "plugins/nDrop/configuration.yml"
- replace all "{permission}" with "%{_permission}%" in {_msg}
- send "%colored {_tag}% %colored {_msg}%" to {_player}
- function "nDrop-playerNotFound" {}:
- set {_player} to arg{1}
- set {_tag} to value "configuration.messages.tag" get of "plugins/nDrop/configuration.yml"
- set {_msg} to value "configuration.messages.playernotfound" get of "plugins/nDrop/configuration.yml"
- send "%colored {_tag}% %colored {_msg}%" to {_player}
Advertisement
Add Comment
Please, Sign In to add comment