on load: if folder "plugins/SBAntyCheat" doesn't exists: create folder "plugins/SBAntyCheat" if file "plugins/SBAntyCheat/config.yml" doesn't exists: create file "plugins/SBAntyCheat/config.yml" set "KillAuraSystem" to "" in yaml file "plugins/SBAntyCheat/config.yml" set "KillAuraSystem.script" to "Tutaj wpisz skrypt docelowy i wpisz /sk reload " in yaml file "plugins/SBAntyCheat/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/SBAntyCheat/config.yml" set "KillAuraSystem.bot.1.status" to "true" in yaml file "plugins/SBAntyCheat/config.yml" set "KillAuraSystem.bot.1.name" to "&4&lANTYKI1" in yaml file "plugins/SBAntyCheat/config.yml" set "KillAuraSystem.bot.2.status" to "true" in yaml file "plugins/SBAntyCheat/config.yml" set "KillAuraSystem.bot.2.name" to "&4&lANTYKI2" in yaml file "plugins/SBAntyCheat/config.yml" set "KillAuraSystem.bot.3.status" to "true" in yaml file "plugins/SBAntyCheat/config.yml" set "KillAuraSystem.bot.3.name" to "&4&lANTYKI3" in yaml file "plugins/SBAntyCheat/config.yml" set "KillAuraSystem.bot.4.status" to "true" in yaml file "plugins/SBAntyCheat/config.yml" set "KillAuraSystem.bot.4.name" to "&4&lANTYKI4" in yaml file "plugins/SBAntyCheat/config.yml" set {ban::message} to colored single value "KillAuraSystem.banmessage" get of "plugins/SBAntyCheat/config.yml" set {bot::1} to single value "KillAuraSystem.bot.1.status" get of "plugins/SBAntyCheat/config.yml" set {name::bot1} to colored single value "KillAuraSystem.bot.1.name" get of "plugins/SBAntyCheat/config.yml" set {bot::2} to single value "KillAuraSystem.bot.2.status" get of "plugins/SBAntyCheat/config.yml" set {name::bot2} to colored single value "KillAuraSystem.bot.2.name" get of "plugins/SBAntyCheat/config.yml" set {bot::3} to single value "KillAuraSystem.bot.3.status" get of "plugins/SBAntyCheat/config.yml" set {name::bot3} to colored single value "KillAuraSystem.bot.3.name" get of "plugins/SBAntyCheat/config.yml" set {bot::4} to single value "KillAuraSystem.bot.4.status" get of "plugins/SBAntyCheat/config.yml" set {name::bot4} to colored single value "KillAuraSystem.bot.4.name" get of "plugins/SBAntyCheat/config.yml" set {script::aks} to single value "KillAuraSystem.script" get of "plugins/SBAntyCheat/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/SBAntyCheat/config.yml" set {bot::1} to single value "KillAuraSystem.bot.1.status" get of "plugins/SBAntyCheat/config.yml" set {name::bot1} to colored single value "KillAuraSystem.bot.1.name" get of "plugins/SBAntyCheat/config.yml" set {bot::2} to single value "KillAuraSystem.bot.2.status" get of "plugins/SBAntyCheat/config.yml" set {name::bot2} to colored single value "KillAuraSystem.bot.2.name" get of "plugins/SBAntyCheat/config.yml" set {bot::3} to single value "KillAuraSystem.bot.3.status" get of "plugins/SBAntyCheat/config.yml" set {name::bot3} to colored single value "KillAuraSystem.bot.3.name" get of "plugins/SBAntyCheat/config.yml" set {bot::4} to single value "KillAuraSystem.bot.4.status" get of "plugins/SBAntyCheat/config.yml" set {name::bot4} to colored single value "KillAuraSystem.bot.4.name" get of "plugins/SBAntyCheat/config.yml" set {script::aks} to single value "KillAuraSystem.script" get of "plugins/SBAntyCheat/config.yml" arg 1 is "sprawdz": arg 2 is set: if player-arg is online: send "&cSprawdzam gracza &a%player-arg%...." open chest with 1 rows named "&4&lANTYKILLAURA" to 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 wait 6 seconds 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: open chest with 1 rows named "&4&lANTYKILLAURA" to loop-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 wait 6 seconds set {ak::status::%loop-players%} to false clear {antykill::%loop-players%} execute server command "npc remove all" every 20 minutes: loop all players: open chest with 1 rows named "&4&lANTYKILLAURA" to loop-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 wait 6 seconds set {ak::status::%loop-players%} to false clear {antykill::%loop-players%} execute server command "npc remove all" 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 on inventory close: if {ak::status::%player%} is true: wait 0.5 seconds open chest with 1 rows named "&4&lANTYKILLAURA" to player on citizen left click: if citizen name is "%{name::bot1}%" or "%{name::bot2}%" or "%{name::bot3}%" or "%{name::bot4}%": add 1 to {antykill::%player%} if {antykill::%player%} is more than 3: add 1 to {killaura::list::gracze} broadcast "&4&lANTYKILLAURA-SYSTEM: &aGracz %player% zostal zbanowany za KILLAURE!" kick player due to "%{ban::message}%" ban player due to "%{ban::message}%" every 120 second: broadcast "&8&m-------------[&4&lANTYKILLAURA-SYSTEM&8&m]----------------" broadcast "&aZbanowalem juz %{killaura::list::gracze}% graczy..." broadcast "&4Lepiej uwazajcie na kazdego PATRZE!" broadcast "&8&m-------------[&4&lANTYKILLAURA-SYSTEM&8&m]----------------" every 2 seconds: loop all players: if loop-player has permission "sbac.fly": stop else: if loop-player is flying: cancel event send "&6Nie ladnie tak latac !" to loop-player send "&4[SB-AntyCheat] &6Gracz %loop-player% lata!" to all ops on damage: if attacker is a player: if difference between {antyclicker.%attacker%.time} and now is less than 1 ticks: cancel event send "&4[SB-AntyCheat] &6Gracz %attacker% prawdopodobnie posiada Macro/Triple/Clicker!" to all ops set {antyclicker.%attacker%.time} to now on damage of player: victim is player attacker is player if distance between attacker and victim is bigger than 4.8: set {reach::distance::%attacker%} to distance between attacker and victim loop all players: if loop-player has permission "sbac.odczyt": send "&4[SB-AntyCheat] &6Gracz %attacker% &eReach &b(%{reach::distance::%attacker%}%)" to loop-player on mine: if player's tool is any pickaxe of efficiency 6: stop add 1 to {speedminestone::%player%} if {speedminestone::%player%} is more than 3: loop all players: if loop-player has permission "sbac.odczyt": send "&4[SB-AntyCheat] &6Gracz %player% prawdopodbnie posiada &4SpeedMine!" to loop-player every 1 second: loop all players: clear {speedminestone::%loop-player%}