on load: if folder "plugins/xAgParticles" doesn't exists: send "Folder xAgParticles not found!" to console send "Creating..." to console create folder "plugins/xAgParticles" send "Folder xAgParticles was successfull created!" to console wait 5 second execute console command "skript reload %script%" if file "plugins/xAgParticles/messages.yml" doesn't exists: send "File messages.yml not found!" to console send "Creating..." to console create file "plugins/xAgParticles/messages.yml" send "Downloading standard messages content..." to console download from "http://pastebin.com/raw/khVsLNJH" to file "plugins/xAgParticles/messages.yml" set {guiname} to colored value "guiname" get of "plugins/xAgParticles/messages.yml" parsed as text set {Nutyparticleon} to colored value "Nutyparticleon" get of "plugins/xAgParticles/messages.yml" parsed as text set {Nutyparticleoff} to colored value "Nutyparticleoff" get of "plugins/xAgParticles/messages.yml" parsed as text set {angryVillagerparticleon} to colored value "angryVillagerparticleon" get of "plugins/xAgParticles/messages.yml" parsed as text set {angryVillagerparticleoff} to colored value "angryVillagerparticleoff" get of "plugins/xAgParticles/messages.yml" parsed as text set {Sharpnessparticleon} to colored value "Sharpnessparticleon" get of "plugins/xAgParticles/messages.yml" parsed as text set {Sharpnessparticleoff} to colored value "Sharpnessparticleoff" get of "plugins/xAgParticles/messages.yml" parsed as text set {Sercaparticleoff} to colored value "Sercaparticleoff" get of "plugins/xAgParticles/messages.yml" parsed as text set {Sercaparticleon} to colored value "Sercaparticleon" get of "plugins/xAgParticles/messages.yml" parsed as text set {Krytparticleoff} to colored value "Krytparticleoff" get of "plugins/xAgParticles/messages.yml" parsed as text set {Krytparticleon} to colored value "Krytparticleon" get of "plugins/xAgParticles/messages.yml" parsed as text set {reloadconsole} to colored value "reloadconsole" get of "plugins/xAgParticles/messages.yml" parsed as text set {allon} to colored value "allon" get of "plugins/xAgParticles/messages.yml" parsed as text set {alloff} to colored value "alloff" get of "plugins/xAgParticles/messages.yml" parsed as text set {aktualnyZADEN} to colored value "aktualnyZADEN" get of "plugins/xAgParticles/messages.yml" parsed as text set {aktualnyWSZYSTKIE} to colored value "aktualnyWSZYSTKIE" get of "plugins/xAgParticles/messages.yml" parsed as text on join: if player has permission "mcag.particles": set {nuty.stan.%player%} to false set {angryVillager.stan.%player%} to false set {sharpness.stan.%player%} to false set {serca.stan.%player%} to false set {kryt.stan.%player%} to false set {aktualny.efekt.%player%} to "%{aktualnyZADEN}%" on any move: if player has permission "mcag.particles": if {nuty.stan.%player%} is true: spawn 2 of particle note:2 offset by 0, 0.5, 0 at player if {angryVillager.stan.%player%} is true: spawn 3 of particle angry Villager:2 offset by 0, 0.5, 0 at player if {sharpness.stan.%player%} is true: spawn 5 of particle magic Crit offset by 0, 1, 0 at player if {serca.stan.%player%} is true: spawn 2 of particle heart:2 offset by 0, 0.5, 0 at player if {kryt.stan.%player%} is true: spawn 5 of particle Crit offset by 0, 1, 0 at player command /xagparticles []: description: Glowna komenda skrypu xAgParticles 1.0 permission: mcag.particles permission message: &8&l• &cBlad: &4Nie posiadasz rangi &6VIP &4ani &2SVIP &4by tego uzyc! trigger: if arg 1 is not set: send " " to player send "&8&l• &2/xagparticles &7- wlacza/wylacza particles." to player send "&8&l• &2/xagparticles &7- wlacza lub wylacza wszystkie particlesy." to player send "&8&l• &2/xagparticles reload &7- przeladowuje skrypt." to player send "&8&l• &2/xagparticles autor &7- pokazuje autora skryptu." to player send "&8&l• &7Wersja skryptu: &22.0" to player send " " to player stop if arg 1 is "nuty": if {nuty.stan.%player%} is true: set {nuty.stan.%player%} to false set {aktualny.efekt.%player%} to "%{aktualnyZADEN}%" execute player command "/ParticleMenu" send "%{Nutyparticleoff}%" to player stop else: set {nuty.stan.%player%} to true set {aktualny.efekt.%player%} to "&cN&5u&at&3y" execute player command "/ParticleMenu" send "%{Nutyparticleon}%" to player stop if arg 1 is "angryVillager": if {angryVillager.stan.%player%} is true: set {angryVillager.stan.%player%} to false set {aktualny.efekt.%player%} to "%{aktualnyZADEN}%" execute player command "/ParticleMenu" send "%{angryVillagerparticleoff}%" to player stop else: set {angryVillager.stan.%player%} to true set {aktualny.efekt.%player%} to "&cangryVillager" execute player command "/ParticleMenu" send "%{angryVillagerparticleon}%" to player stop if arg 1 is "sharpness": if {sharpness.stan.%player%} is true: set {sharpness.stan.%player%} to false set {aktualny.efekt.%player%} to "%{aktualnyZADEN}%" execute player command "/ParticleMenu" send "%{Sharpnessparticleoff}%" to player stop else: set {sharpness.stan.%player%} to true set {aktualny.efekt.%player%} to "&bSharpness" execute player command "/ParticleMenu" send "%{Sharpnessparticleon}%" to player stop if arg 1 is "serca": if {serca.stan.%player%} is true: set {serca.stan.%player%} to false set {aktualny.efekt.%player%} to "%{aktualnyZADEN}%" execute player command "/Particlemenu" send "%{Sercaparticleoff}%" to player stop else: set {serca.stan.%player%} to true set {aktualny.efekt.%player%} to "&4Serca" execute player command "/Particlemenu" send "%{Sercaparticleon}%" to player stop if arg 1 is "kryt": if {kryt.stan.%player%} is true: set {kryt.stan.%player%} to false set {aktualny.efekt.%player%} to "%{aktualnyZADEN}%" execute player command "/Particlemenu" send "%{Krytparticleoff}%" to player stop else: set {kryt.stan.%player%} to true set {aktualny.efekt.%player%} to "&9Kryt" execute player command "/Particlemenu" send "%{Krytparticleon}%" to player stop if arg 1 is "wylaczall": set {nuty.stan.%player%} to false set {angryVillager.stan.%player%} to false set {sharpness.stan.%player%} to false set {serca.stan.%player%} to false set {kryt.stan.%player%} to false set {aktualny.efekt.%player%} to "%{aktualnyZADEN}%" execute player command "/Particlemenu" send "%{alloff}%" to player stop if arg 1 is "wlaczall": set {nuty.stan.%player%} to true set {angryVillager.stan.%player%} to true set {sharpness.stan.%player%} to true set {serca.stan.%player%} to true set {kryt.stan.%player%} to true set {aktualny.efekt.%player%} to "%{aktualnyWSZYSTKIE}%" execute player command "/Particlemenu" send "%{allon}%" to player stop if arg 1 is "reload": execute console command "skript reload %script%" wait 4 second send "%{reloadconsole}%" to console stop if arg 1 is "autor": send "&8&l• &7Autorem skryptu jest: &2x_Agaroo" to player stop command /ParticleMenu: description: Komenda skryptu xAgParticles 1.0 permission: mcag.particles permission message: &8&l• &cBlad: &4Nie masz do tego uprawnien! trigger: set {gui.komenda.%player%} to true open chest with 3 rows named "%{guiname}%" to player wait a tick format slot 0 of player with 1 of book named "&8&l• &6&lAktualny Particles" with lore "&8&l• %{aktualny.efekt.%player%}%" to close format slot 1 of player with 1 of black glass named " " to close format slot 2 of player with 1 of black glass named " " to close format slot 3 of player with 1 of black glass named " " to close format slot 4 of player with 1 of black glass named " " to close format slot 5 of player with 1 of black glass named " " to close format slot 6 of player with 1 of black glass named " " to close format slot 7 of player with 1 of red wool named "&8&l• &cWylacz &7wszystkie particlesy!" to run [execute player command "/xagparticles wylaczall"] format slot 8 of player with 1 of green wool named "&8&l• &aWlacz &7wszystkie particlesy!" to run [execute player command "/xagparticles wlaczall"] format slot 9 of player with 1 of black glass named " " to close format slot 10 of player with 1 of black glass named " " to close format slot 11 of player with 1 of note block named "&8&l• &6&lNuty " with lore "&8&l• &7Kliknij aby &awlaczyc&8/&cwylaczyc &7particiles" to run [execute player command "/xagparticles nuty"] format slot 12 of player with 1 of red wool named "&8&l• &6&langryVillager " with lore "&8&l• &7Kliknij aby &awlaczyc&8/&cwylaczyc &7particiles" to run [execute player command "/xagparticles angryVillager"] format slot 13 of player with 1 of diamond sword named "&8&l• &6&lSharpness " with lore "&8&l• &7Kliknij aby &awlaczyc&8/&cwylaczyc &7particiles" to run [execute player command "/xagparticles sharpness"] format slot 14 of player with 1 of redstone block named "&8&l• &6&lSerca " with lore "&8&l• &7Kliknij aby &awlaczyc&8/&cwylaczyc &7particiles" to run [execute player command "/xagparticles serca"] format slot 15 of player with 1 of wool named "&8&l• &6&lKryt " with lore "&8&l• &7Kliknij aby &awlaczyc&8/&cwylaczyc &7particiles" to run [execute player command "/xagparticles kryt"] format slot 16 of player with 1 of black glass named " " to close format slot 17 of player with 1 of black glass named " " to close format slot 18 of player with 1 of Arrow named "&8&l• &c&lWYJDZ" to close format slot 19 of player with 1 of black glass named " " to close format slot 20 of player with 1 of black glass named " " to close format slot 21 of player with 1 of black glass named " " to close format slot 22 of player with 1 of black glass named " " to close format slot 23 of player with 1 of black glass named " " to close format slot 24 of player with 1 of black glass named " " to close format slot 25 of player with 1 of black glass named " " to close format slot 26 of player with 1 of black glass named " " to close wait 15 ticks set {gui.komenda.%player%} to false stop