geforkt von SteamWar/BungeeCore
Update messages and cleanup RankCommand visual clutter
Dieser Commit ist enthalten in:
Ursprung
6c540c3bac
Commit
7cd4a5bac8
@ -51,23 +51,24 @@ public class RankCommand extends SWCommand {
|
||||
return;
|
||||
}
|
||||
if (!player.getName().equals(s)) {
|
||||
Message.send("RANK_PLAYER_FOUND", player, user.getUserName());
|
||||
Message.sendPrefixless("RANK_PLAYER_FOUND", player, user.getUserName());
|
||||
}
|
||||
|
||||
for(ArenaMode mode : ArenaMode.getAllModes()) {
|
||||
if (!mode.isRanked())
|
||||
continue;
|
||||
|
||||
Message.send("RANK_HEADER", player, mode.getChatName());
|
||||
|
||||
Optional<Integer> elo = UserElo.getElo(user.getId(), mode.getSchemType());
|
||||
|
||||
String eloString;
|
||||
if (elo.isPresent()) {
|
||||
int placement = UserElo.getPlacement(elo.get(), mode.getSchemType());
|
||||
Message.send("RANK_PLACED", player, placement, elo.get());
|
||||
eloString = Message.parse("RANK_PLACED", player, placement, elo.get());
|
||||
} else {
|
||||
Message.send("RANK_UNPLACED", player);
|
||||
eloString = Message.parse("RANK_UNPLACED", player);
|
||||
}
|
||||
Message.send("RANK_EMBLEM", player, UserElo.getEmblemProgression(mode.getChatName(), user.getId()));
|
||||
|
||||
Message.sendPrefixless("RANK_HEADER", player, mode.getChatName(), eloString);
|
||||
Message.sendPrefixless("RANK_EMBLEM", player, UserElo.getEmblemProgression(mode.getChatName(), user.getId()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -638,10 +638,10 @@ ARENA_NOT_FOUND=§cThe specified arena could not be found
|
||||
#Rank
|
||||
RANK_PLAYER_NOT_FOUND=§cPlayer not found
|
||||
RANK_PLAYER_FOUND=§eRank §7of §e{0}
|
||||
RANK_HEADER=§7§lMode {0}
|
||||
RANK_UNPLACED=§eunranked
|
||||
RANK_HEADER=§e{0} {1}
|
||||
RANK_UNPLACED=§7unranked
|
||||
RANK_PLACED=§e{0}§8. §7with §e{1} §7Elo§8.
|
||||
RANK_EMBLEM=§eEmblem§8: {0}
|
||||
RANK_EMBLEM=§7Emblem§8: {0}
|
||||
|
||||
#Fabric Mod Sender
|
||||
MODIFICATION_BAN_MESSAGE=You tried to bypass / modify the FabricModSender!
|
||||
|
@ -615,10 +615,10 @@ ARENA_NOT_FOUND=§cDie angegebene Arena konnte nicht gefunden werden
|
||||
#Rank
|
||||
RANK_PLAYER_NOT_FOUND=§cSpieler nicht gefunden
|
||||
RANK_PLAYER_FOUND=§eRang §7von §e{0}
|
||||
RANK_HEADER=§7§lModus {0}
|
||||
RANK_UNPLACED=§eunplatziert
|
||||
RANK_HEADER=§e{0} {1}
|
||||
RANK_UNPLACED=§7unplatziert
|
||||
RANK_PLACED=§e{0}§8. §7mit §e{1} §7Elo§8.
|
||||
RANK_EMBLEM=§eEmblem§8: {0}
|
||||
RANK_EMBLEM=§7Emblem§8: {0}
|
||||
|
||||
#Fabric Mod Sender
|
||||
MODIFICATION_BAN_MESSAGE=Du hast probiert den FabricModSender zu umgehen / zu modifizieren!
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren