geforkt von SteamWar/BungeeCore
Add PollSystem MultiLang
Dieser Commit ist enthalten in:
Ursprung
11a339f785
Commit
1b69057eea
@ -19,7 +19,7 @@
|
||||
|
||||
package de.steamwar.bungeecore.listeners;
|
||||
|
||||
import de.steamwar.bungeecore.BungeeCore;
|
||||
import de.steamwar.bungeecore.Message;
|
||||
import de.steamwar.bungeecore.sql.PollAnswer;
|
||||
import de.steamwar.bungeecore.sql.SteamwarUser;
|
||||
import net.md_5.bungee.api.chat.ClickEvent;
|
||||
@ -56,14 +56,13 @@ public class PollSystem extends BasicListener {
|
||||
}
|
||||
|
||||
public static void sendPoll(ProxiedPlayer player){
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§e§lUmfrage");
|
||||
BungeeCore.send(player, "§7Klicke die Antwort an, die dir gefällt!");
|
||||
BungeeCore.send(player, "§e" + question);
|
||||
Message.send("POLL_HEADER", player);
|
||||
Message.sendPrefixless("POLL_HEADER2", player);
|
||||
Message.sendPrefixless("POLL_QUESTION", player, question);
|
||||
|
||||
for(int i = 1; i <= answers.size(); i++){
|
||||
BungeeCore.send(player, "§7" + answers.get(i-1),
|
||||
"§e" + answers.get(i-1) + " §ewählen",
|
||||
new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/poll " + i));
|
||||
Message.send("POLL_ANWSER", player, Message.parse("POLL_ANWSER_HOVER", player, answers.get(i-1)),
|
||||
new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/poll " + i), answers.get(i-1));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -443,3 +443,10 @@ JOIN_FIRST=§7Begrüßt alle mal §e{0} §7auf dem Server§8!
|
||||
|
||||
#EventModeListener
|
||||
EVENTMODE_KICK=§cDu bist kein Eventteilnehmer.
|
||||
|
||||
#PollSystem
|
||||
POLL_HEADER=§e§lUmfrage
|
||||
POLL_HEADER2=§7Klicke die Antwort an, die dir gefällt!
|
||||
POLL_QUESTION=§e{0}
|
||||
POLL_ANWSER=§7{0}
|
||||
POLL_ANWSER_HOVER=§e{0} §ewählen
|
In neuem Issue referenzieren
Einen Benutzer sperren