diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index 90977cc..c536477 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -451,6 +451,28 @@ function init_team_names(): loop 10 times: set {skybattle::team%loop-number%::name} to {_team%loop-number%} +function get_team(team: text): + if {_team} is "IDList1": + return "Karmínová" + if {_team} is "IDList2": + return "Jantarová" + if {_team} is "IDList3": + return "Krémová" + if {_team} is "IDList4": + return "Limetková" + if {_team} is "IDList5": + return "Smaragdová" + if {_team} is "IDList6": + return "Azurová" + if {_team} is "IDList7": + return "Blankytná" + if {_team} is "IDList8": + return "Nebeská" + if {_team} is "IDList9": + return "Nachová" + if {_team} is "IDList10": + return "Švestková" + on block place of concrete: remove 1 of event-block from player's inventory @@ -469,6 +491,7 @@ on death of player: # victim, attacker if {skybattle::%team of victim%::alive_number} is 0: set {skybattle::teams_alive_num} to {skybattle::teams_alive_num} - 1 remove team of victim from {skybattle::teams_alive::*} + broadcast "Zemřel celý tým %get_team(team of victim)%" on respawn: if {skybattle::deadplayers::*} contains player's uuid: