From c308095b75a3982d57e2c83500afad8d73532818 Mon Sep 17 00:00:00 2001 From: Anorak_1 Date: Tue, 13 Sep 2022 18:57:12 +0000 Subject: [PATCH] Update 'papik.sk' --- papik.sk | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/papik.sk b/papik.sk index 46ac563..f2f2576 100644 --- a/papik.sk +++ b/papik.sk @@ -3,6 +3,28 @@ command /scoreupdate: trigger: set {teampoints_reset} to 0 +function teamInfo(id: text): + if _id is "IDList1": + return "紅 &cKarmínová" + if _id is "IDList2": + return "橙 &6Jantarová" + if _id is "IDList3": + return "黃 &eKrémová" + if _id is "IDList4": + return "婊 &aLimetková" + if _id is "IDList5": + return "綠 &2Smaragdová" + if _id is "IDList6": + return "松 &3Azurová" + if _id is "IDList7": + return "色 &bBlankytná" + if _id is "IDList8": + return "藍 &9Nebeská" + if _id is "IDList9": + return "紫 &5Nachová" + if _id is "IDList10": + return "粉 &dŠvestková" + on join: set join message to "§e%player% se připojil." @@ -144,7 +166,8 @@ on placeholderapi placeholder request for the prefix "game": if {teampoints::%{1stteam}%} is 0: set the result to "&7-" else: - set the result to "%prefix of team {1stteam}% &r%{teampoints::%{1stteam}%}%" + #set the result to "%prefix of team {1stteam}% &r%{teampoints::%{1stteam}%}%" + set the result to teamInfo({1stteam}) else: set the result to "&7-" #set {new::*} to sorted {play::*} @@ -153,7 +176,8 @@ on placeholderapi placeholder request for the prefix "game": if {teampoints::%{2stteam}%} is 0: set the result to "&7-" else: - set the result to "%prefix of team {2stteam}% &r%{teampoints::%{2stteam}%}%" + #set the result to "%prefix of team {2stteam}% &r%{teampoints::%{2stteam}%}%" + set the result to teamInfo({2stteam}) else: set the result to "&7-" if the identifier is "poradi3": @@ -161,6 +185,7 @@ on placeholderapi placeholder request for the prefix "game": if {teampoints::%{3stteam}%} is 0: set the result to "&7-" else: - set the result to "%prefix of team {3stteam}% &r%{teampoints::%{3stteam}%}%" + #set the result to "%prefix of team {3stteam}% &r%{teampoints::%{3stteam}%}%" + set the result to teamInfo({3stteam}) else: set the result to "&7-"