on load: if folder "plugins/AntyKillAura-System" doesn't exists: create folder "plugins/AntyKillAura-System" if file "plugins/AntyKillAura-System/config.yml" doesn't exists: create file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem" to "" in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.script" to "Tutaj wpisz skrypt docelowy i wpisz /sk reload " in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.banmessage" to "&4&lPERMAMENTNIE ZBANOWANY||&3Zbanowal: &4&lANTYKILLAURA-SYSTEM||&3Powod: &4&lKillAura||&3Ban mija za: &4NIGDY||&6Zakup unbana na &ahttp://www.127465.enmc.pl/sklep" in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.bot.1.status" to "true" in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.bot.1.name" to "&4&lANTYKI1" in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.bot.2.status" to "true" in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.bot.2.name" to "&4&lANTYKI2" in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.bot.3.status" to "true" in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.bot.3.name" to "&4&lANTYKI3" in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.bot.4.status" to "true" in yaml file "plugins/AntyKillAura-System/config.yml" set "KillAuraSystem.bot.4.name" to "&4&lANTYKI4" in yaml file "plugins/AntyKillAura-System/config.yml" set {ban::message} to colored single value "KillAuraSystem.banmessage" get of "plugins/AntyKillAura-System/config.yml" set {bot::1} to single value "KillAuraSystem.bot.1.status" get of "plugins/AntyKillAura-System/config.yml" set {name::bot1} to colored single value "KillAuraSystem.bot.1.name" get of "plugins/AntyKillAura-System/config.yml" set {bot::2} to single value "KillAuraSystem.bot.2.status" get of "plugins/AntyKillAura-System/config.yml" set {name::bot2} to colored single value "KillAuraSystem.bot.2.name" get of "plugins/AntyKillAura-System/config.yml" set {bot::3} to single value "KillAuraSystem.bot.3.status" get of "plugins/AntyKillAura-System/config.yml" set {name::bot3} to colored single value "KillAuraSystem.bot.3.name" get of "plugins/AntyKillAura-System/config.yml" set {bot::4} to single value "KillAuraSystem.bot.4.status" get of "plugins/AntyKillAura-System/config.yml" set {name::bot4} to colored single value "KillAuraSystem.bot.4.name" get of "plugins/AntyKillAura-System/config.yml" set {script::aks} to single value "KillAuraSystem.script" get of "plugins/AntyKillAura-System/config.yml" command /aksystem [] []: permission: aksystem.admin trigger: arg 1 is not set: send "&a/aksystem &csprawdz &7- Sprawdzasz konkretnego gracza" send "&a/aksystem &csprawdzall &7- Sprawdzasz wszystkich graczy" send "&a/aksystem &creload &7- Resetujesz konfiguracje" arg 1 is "reload": send "&aReloaduje konfiguracje...." set {ban::message} to colored single value "KillAuraSystem.banmessage" get of "plugins/AntyKillAura-System/config.yml" set {bot::1} to single value "KillAuraSystem.bot.1.status" get of "plugins/AntyKillAura-System/config.yml" set {name::bot1} to colored single value "KillAuraSystem.bot.1.name" get of "plugins/AntyKillAura-System/config.yml" set {bot::2} to single value "KillAuraSystem.bot.2.status" get of "plugins/AntyKillAura-System/config.yml" set {name::bot2} to colored single value "KillAuraSystem.bot.2.name" get of "plugins/AntyKillAura-System/config.yml" set {bot::3} to single value "KillAuraSystem.bot.3.status" get of "plugins/AntyKillAura-System/config.yml" set {name::bot3} to colored single value "KillAuraSystem.bot.3.name" get of "plugins/AntyKillAura-System/config.yml" set {bot::4} to single value "KillAuraSystem.bot.4.status" get of "plugins/AntyKillAura-System/config.yml" set {name::bot4} to colored single value "KillAuraSystem.bot.4.name" get of "plugins/AntyKillAura-System/config.yml" set {script::aks} to single value "KillAuraSystem.script" get of "plugins/AntyKillAura-System/config.yml" arg 1 is "sprawdz": arg 2 is set: if player-arg is online: send "&cSprawdzam gracza &a%player-arg%...." set {ak::status::%player-arg%} to true if {bot::1} is "true": create a citizen named "%{name::bot1}%" at location 2 blocks behind player-arg wait 1 second execute server command "npc remove all" if {bot::2} is "true": create a citizen named "%{name::bot2}%" at location 2 blocks west player-arg wait 1 second execute server command "npc remove all" if {bot::3} is "true": create a citizen named "%{name::bot3}%" at location 2 blocks right player-arg wait 1 second execute server command "npc remove all" if {bot::4} is "true": create a citizen named "%{name::bot4}%" at location 2 blocks left player-arg set {ak::status::%player-arg%} to false clear {antykill::%player-arg%} execute server command "npc remove all" arg 1 is "sprawdzall": send "&cSprawdzam &aWszystkich graczy...." loop all players: set {ak::status::%loop-players%} to true if {bot::1} is true: create a citizen named "%{name::bot1}%" at location 2 blocks behind loop-players wait 1 second execute server command "npc remove all" if {bot::2} is true: create a citizen named "%{name::bot2}%" at location 2 blocks west loop-players wait 1 second execute server command "npc remove all" if {bot::3} is true: create a citizen named "%{name::bot3}%" at location 2 blocks right loop-players wait 1 second execute server command "npc remove all" if {bot::4} is true: create a citizen named "%{name::bot4}%" at location 2 blocks left loop-players set {ak::status::%loop-players%} to false clear {antykill::%loop-players%} execute server command "npc remove all" every 0.1 seconds: loop all players: if {botkillanty::%loop-player%} is true: if {idss::%loop-player%} is not set: set {1d} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {2d} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {3d} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {4d} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {nr::ac} to "%{1d}%%{2d}%%{3d}%%{4d}%" create a citizen named "&4AC-%{nr::ac}%" at location of loop-player set {idss::%loop-player%} to last created citizen id set {loc::%loop-player%} to location 4 blocks behind loop-player teleport citizen {idss::%loop-player%} to {loc::%loop-player%} every 3 seconds: loop all players: set {antykill::%loop-player%} to 0 on damage: attacker is a player victim is a player if name of attacker is "&4&lANTYKILLAURA1" or "&4&lANTYKILLAURA2" or "&4&lANTYKILLAURA3" or "&4&lANTYKILLAURA4": cancel event if attacker is player: if victim is citizen: if citizen is {idss::%attacker%}: add 1 to {antykill::%attacker%} if {antykill::%attacker%} is more than 5: add 1 to {killaura::list::gracze} broadcast "&8[&4AntyCheat&8] &aGracz %attacker% zostal zbanowany za KILLAURE!" kick attacker due to "%{ban::message}%" ban attacker due to "%{ban::message}%" on citizen left click: if citizen is {idss::%player%}: add 1 to {antykill::%player%} if {antykill::%player%} is more than 5: add 1 to {killaura::list::gracze} broadcast "&8[&4AntyCheat&8] &aGracz %player% zostal zbanowany za KILLAURE!" kick player due to "%{ban::message}%" ban player due to "%{ban::message}%" on citizen right click: if citizen is {idss::%player%}: add 1 to {antykill::%player%} if {antykill::%player%} is more than 5: add 1 to {killaura::list::gracze} broadcast "&8[&4AntyCheat&8] &aGracz %player% zostal zbanowany za KILLAURE!" kick player due to "%{ban::message}%" ban player due to "%{ban::message}%" every 120 second: broadcast "&8&m-------------[&4AntyCheat&8&m]----------------" broadcast "" broadcast "&7AntyCheat zbanowal juz&8: &e%{killaura::list::gracze}% &7graczy" broadcast "&7Obserwuje cie" broadcast "" broadcast "&8&m-------------[&4AntyCheat&8&m]----------------" on disconnect: if {idss::%player%} is set: despawn citizen {idss::%player%} clear {idss::%player%} variables: {logout::%player%} = -1 command /antylogout []: trigger: if arg-1 is not set: if {logout::%player%} = -1 or 0: send "&aNie jestes podczas pvp!" else: send "&cJestes podczas pvp! &7(&c%{logout::%player%}%sek.&7)" on death of player: if {lastattacker::%victim%} is set: execute console command "eco %{lastattacker::%victim%}%" delete {lastattacker::%victim%} on damage: set {lastattacker::%victim%} to "%attacker%" on join: delete {lastattacker::%player%} on quit: delete {lastattacker::%player%} every second: loop all players: if {logout::%loop-player%} = 0: remove 1 from {logout::%loop-player%} #Odejmuje 1 zeby nic sie nie bugowalo. set action bar of loop-player to "&4&lANTYLOGOUT &7(&a0sek.&7)" send "&7Walka zostala zakonczona! &aMozesz sie wylogowac!" to loop-player set {botkillanty::%loop-player%} to false despawn citizen {idss::%loop-player%} clear {idss::%loop-player%} if {logout::%loop-player%} > 0: set action bar of loop-player to "&4&lANTYLOGOUT &7(&c%{logout::%loop-player%}%.&k00&csek&7)" remove 1 from {logout::%loop-player%} on damage: if attacker is victim: stop if attacker is player: if victim is player: set action bar of victim to "&4&lANTYLOGOUT &7(&c20.&k00&csek&7)" if {logout::%victim%} < 0: send "&7Walka zostala rozpoczeta! &cNie mozesz sie wylogowac!" to victim set {botkillanty::%attacker%} to true set {botkillanty::%victim%} to true loop all players: hide citizen {idss::%victim%} from loop-players reveal citizen {idss::%victim%} from victim set {logout::%victim%} to 20 if {logout::%attacker%} < 0: send "&7Walka zostala rozpoczeta! &cNie mozesz sie wylogowac!" to attacker set {botkillanty::%attacker%} to true set {botkillanty::%victim%} to true loop all players: hide citizen {idss::%attacker%} from loop-players reveal citizen {idss::%attacker%} from attacker set {logout::%attacker%} to 20 on death: set {logout::%player%} to -1 on quit: if {logout::%player%} > 0: kill player broadcast "&7Gracz &e%player% &7wylogowal sie podczas walki!" set {logout::%player%} to -1 else: stop on command: if {logout::%player%} > 0: if command is "spawn" or "lobby": cancel event send "&cBlad: &7Ta komenda jest zablokowana podczas pvp!" on join: set {logout::%player%} to -1