Proszę, skrypt nietestowany. Wymagany Skript 2.5+ oraz dodatek SkRayFall.
on damage of player:
attacker is a player
attacker is not a victim
set {antiLogOut::%attacker%} to 25
set {antiLogOut::%victim%} to 25
create bossbar titled "&6Nie wylogowuj się, jesteś podczas walki! Pozostało &c%{antiLogOut::%attacker%}% &6sekund!" and id "antiLogOut.%attacker%" with progress 25 with colors red with style solid
create bossbar titled "&6Nie wylogowuj się, jesteś podczas walki! Pozostało &c%{antiLogOut::%victim%}% &6sekund!" and id "antiLogOut.%victim%" with progress 25 with colors red with style solid
every 1 second:
loop all players:
{antiLogOut::%loop-player%} is set
remove 1 from {antiLogOut::%loop-player%}
remove 1 from value of bossbar "antiLogOut.%loop-player%"
{antiLogOut::%loop-player%} is 0
clear {antiLogOut::%loop-player%}
remove bossbar "antiLogOut.%loop-player%"
send action bar "&aJuż nie jesteś podczas walki!" to loop-player
on quit:
{antiLogOut::%player%} is set
clear {antiLogOut::%player%}
ban player due to "&cWyszedłeś podczas walki! Otrzymałeś bana na &410 &cminut!" for 10 minutes