function getPL(return: text) :: text:
set {_ang::*} to ("years" and "year", "months", "month", "days", "day", "hours" , "hour", "minutes" , "minute", "seconds", "second", "and")
set {_pl::*} to ("lata" and "rok", "miesiecy", "miesiac", "dni", "dzien", "godzin", "godzina", "minut", "minuta", "sekund", "sekunda", "i")
loop {_ang::*}:
replace all loop-value with {_pl::%loop-index%} in {_return}
return {_return}
on guild member join:
set {GuildJoin::%player%} to now
On guild member kick:
if difference between {GuildJoin::%kicked%} and now >= 5 minutes:
stop
cancel event
set {_time} to "%difference between {GuildJoin::%kicked%} and now%"
send "&7Nie mozesz wyrzucic tego gracza jeszcze przez &6%getPL({_time})%!" to player
on damage of player:
if attacker is player:
if attacker is in guild victim:
if difference between {GuildJoin::%victim%} and now >= 5 minutes:
stop
cancel event
set {_time} to "%difference between {GuildJoin::%victim%} and now%"
send "&7Nie mozesz bic tego gracza jeszcze przez &6%getPL({_time})%!" to attacker