SteamWar/BungeeCore
Archiviert
13
2

Update messages and cleanup RankCommand visual clutter
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2023-05-13 13:14:55 +02:00
Ursprung 6c540c3bac
Commit 7cd4a5bac8
3 geänderte Dateien mit 14 neuen und 13 gelöschten Zeilen

Datei anzeigen

@ -51,23 +51,24 @@ public class RankCommand extends SWCommand {
return; return;
} }
if (!player.getName().equals(s)) { 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()) { for(ArenaMode mode : ArenaMode.getAllModes()) {
if (!mode.isRanked()) if (!mode.isRanked())
continue; continue;
Message.send("RANK_HEADER", player, mode.getChatName());
Optional<Integer> elo = UserElo.getElo(user.getId(), mode.getSchemType()); Optional<Integer> elo = UserElo.getElo(user.getId(), mode.getSchemType());
String eloString;
if (elo.isPresent()) { if (elo.isPresent()) {
int placement = UserElo.getPlacement(elo.get(), mode.getSchemType()); 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 { } 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()));
} }
} }

Datei anzeigen

@ -638,10 +638,10 @@ ARENA_NOT_FOUND=§cThe specified arena could not be found
#Rank #Rank
RANK_PLAYER_NOT_FOUND=§cPlayer not found RANK_PLAYER_NOT_FOUND=§cPlayer not found
RANK_PLAYER_FOUND=§eRank §7of §e{0} RANK_PLAYER_FOUND=§eRank §7of §e{0}
RANK_HEADER=§7§lMode {0} RANK_HEADER=§e{0} {1}
RANK_UNPLACED=§eunranked RANK_UNPLACED=§7unranked
RANK_PLACED=§e{0}§8. §7with §e{1} §7Elo§8. RANK_PLACED=§e{0}§8. §7with §e{1} §7Elo§8.
RANK_EMBLEM=§eEmblem§8: {0} RANK_EMBLEM=§7Emblem§8: {0}
#Fabric Mod Sender #Fabric Mod Sender
MODIFICATION_BAN_MESSAGE=You tried to bypass / modify the FabricModSender! MODIFICATION_BAN_MESSAGE=You tried to bypass / modify the FabricModSender!

Datei anzeigen

@ -615,10 +615,10 @@ ARENA_NOT_FOUND=§cDie angegebene Arena konnte nicht gefunden werden
#Rank #Rank
RANK_PLAYER_NOT_FOUND=§cSpieler nicht gefunden RANK_PLAYER_NOT_FOUND=§cSpieler nicht gefunden
RANK_PLAYER_FOUND=§eRang §7von §e{0} RANK_PLAYER_FOUND=§eRang §7von §e{0}
RANK_HEADER=§7§lModus {0} RANK_HEADER=§e{0} {1}
RANK_UNPLACED=§eunplatziert RANK_UNPLACED=§7unplatziert
RANK_PLACED=§e{0}§8. §7mit §e{1} §7Elo§8. RANK_PLACED=§e{0}§8. §7mit §e{1} §7Elo§8.
RANK_EMBLEM=§eEmblem§8: {0} RANK_EMBLEM=§7Emblem§8: {0}
#Fabric Mod Sender #Fabric Mod Sender
MODIFICATION_BAN_MESSAGE=Du hast probiert den FabricModSender zu umgehen / zu modifizieren! MODIFICATION_BAN_MESSAGE=Du hast probiert den FabricModSender zu umgehen / zu modifizieren!