Changing Messages
Dieser Commit ist enthalten in:
Ursprung
8682bb9b66
Commit
a3179483fd
@ -41,10 +41,8 @@ public class PollresultCommand extends BasicCommand {
|
|||||||
|
|
||||||
Map<String, Integer> voted = PollAnswer.getCurrentResults();
|
Map<String, Integer> voted = PollAnswer.getCurrentResults();
|
||||||
Message.send("POLLRESULT_HEADER", player, PollAnswer.getAllAnswered(), PollSystem.getQuestion());
|
Message.send("POLLRESULT_HEADER", player, PollAnswer.getAllAnswered(), PollSystem.getQuestion());
|
||||||
int i = 1;
|
|
||||||
for (Map.Entry<String, Integer> e: voted.entrySet()) {
|
for (Map.Entry<String, Integer> e: voted.entrySet()) {
|
||||||
Message.send("POLLRESULT_LIST", sender, i, e.getKey(), e.getValue());
|
Message.send("POLLRESULT_LIST", sender, e.getKey(), e.getValue());
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ public class PollAnswer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static Integer getAllAnswered() {
|
public static Integer getAllAnswered() {
|
||||||
ResultSet set = SQL.select("SELECT Count(UserID) AS Times FROM PollAnswer");
|
ResultSet set = SQL.select("SELECT Count(UserID) AS Times FROM PollAnswer WHERE Question = ?", PollSystem.getQuestion());
|
||||||
try {
|
try {
|
||||||
if(!set.next())
|
if(!set.next())
|
||||||
throw new SecurityException("Could not get PollAnswers");
|
throw new SecurityException("Could not get PollAnswers");
|
||||||
|
@ -55,5 +55,5 @@ HELP_BAU_BAU=§8/§ehelp bau §8- §7Hilfe zu nützlichen Werkzeugen
|
|||||||
HELP_BAU_BAU_HOVER=§eNützliche Zusatzfunktionen
|
HELP_BAU_BAU_HOVER=§eNützliche Zusatzfunktionen
|
||||||
|
|
||||||
#PollresultCommand
|
#PollresultCommand
|
||||||
POLLRESULT_HEADER=§e§lEs haben {0} abgestimmt auf die Frage: §f{1}
|
POLLRESULT_HEADER=§eEs haben {0} abgestimmt auf die Frage: §7{1}
|
||||||
POLLRESULT_LIST=§e{0}. §7{1} mit {2} stimmen
|
POLLRESULT_LIST=§e{0}§8: §7{1}
|
In neuem Issue referenzieren
Einen Benutzer sperren