geforkt von SteamWar/BungeeCore
Add RankCommand MultiLang
Dieser Commit ist enthalten in:
Ursprung
25885bd65c
Commit
f80829fc46
@ -20,7 +20,7 @@
|
||||
package de.steamwar.bungeecore.commands;
|
||||
|
||||
import de.steamwar.bungeecore.ArenaMode;
|
||||
import de.steamwar.bungeecore.BungeeCore;
|
||||
import de.steamwar.bungeecore.Message;
|
||||
import de.steamwar.bungeecore.sql.Elo;
|
||||
import de.steamwar.bungeecore.sql.SteamwarUser;
|
||||
import net.md_5.bungee.api.CommandSender;
|
||||
@ -40,7 +40,7 @@ public class RankCommand extends BasicCommand {
|
||||
return;
|
||||
|
||||
ProxiedPlayer player = (ProxiedPlayer) sender;
|
||||
BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§7§lPlatzierungen");
|
||||
Message.send("RANK_HEADER", player);
|
||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
||||
for(ArenaMode mode : ArenaMode.getAllModes()){
|
||||
if(!mode.isRanked())
|
||||
@ -49,9 +49,9 @@ public class RankCommand extends BasicCommand {
|
||||
int placement = Elo.getPlacement(elo, mode.getSchemType());
|
||||
|
||||
if(placement == -1)
|
||||
BungeeCore.send(player, "§7" + mode.getChatName() + "§8: §eunplatziert");
|
||||
Message.send("RANK_UNPLACED", player, mode.getChatName());
|
||||
else
|
||||
BungeeCore.send(player, "§7" + mode.getChatName() + "§8: §e" + ++placement + "§8. §7mit §e" + elo + " §7Elo§8.");
|
||||
Message.send("RANK_PLACED", player, mode.getChatName(), placement, elo);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -243,4 +243,9 @@ PING_RESPONSE=§7Dein Ping beträgt §c{0}§r§7 ms!
|
||||
POLL_NO_POLL=§cDerzeit läuft keine Umfrage.
|
||||
POLL_NO_ANSWER=§cDas ist keine Antwortmöglichkeit!
|
||||
POLL_ANSWER_REFRESH=§aDeine Antwort wurde aktualisiert
|
||||
POLL_ANSWER_NEW=§aDeine Antwort wurde registriert
|
||||
POLL_ANSWER_NEW=§aDeine Antwort wurde registriert
|
||||
|
||||
#RankCommand
|
||||
RANK_HEADER=§7§lPlatzierungen
|
||||
RANK_UNPLACED=§7{0}§8: §eunplatziert
|
||||
RANK_PLACED=§7{0}§8: §e{1}§8. §7mit §e{2} §7Elo§8.
|
In neuem Issue referenzieren
Einen Benutzer sperren