Fix BauScoreboard multilingual
Dieser Commit ist enthalten in:
Ursprung
17eeb2d69f
Commit
937bf41685
@ -23,11 +23,11 @@ DATE = ........
|
||||
|
||||
# Permission
|
||||
PERMISSION_WORLD=Einstellungen vornehmen
|
||||
PERMISSION_WORLD_EDIT=WorldEdit verwenden
|
||||
PERMISSION_CHANGE_YOU_ENABLE=§aDer Spieler darf nun {0}
|
||||
PERMISSION_CHANGE_YOU_DISABLE=§cDer Spieler darf nun nicht mehr {0}
|
||||
PERMISSION_CHANGE_OTHER_ENABLE=§aDu kannst nun auf der Welt von §6{0} §a{1}
|
||||
PERMISSION_CHANGE_OTHER_DISABLE=§cDu kannst nun nicht mehr auf der Welt von §6{0} §c{1}
|
||||
PERMISSION_WORLD-EDIT=WorldEdit verwenden
|
||||
PERMISSION_CHANGE_YOU-ENABLE=§aDer Spieler darf nun {0}
|
||||
PERMISSION_CHANGE_YOU-DISABLE=§cDer Spieler darf nun nicht mehr {0}
|
||||
PERMISSION_CHANGE_OTHER-ENABLE=§aDu kannst nun auf der Welt von §6{0} §a{1}
|
||||
PERMISSION_CHANGE_OTHER-DISABLE=§cDu kannst nun nicht mehr auf der Welt von §6{0} §c{1}
|
||||
|
||||
# Scoreboard
|
||||
SCOREBOARD_TIME = Uhrzeit
|
||||
@ -37,7 +37,7 @@ SCOREBOARD_LOADER = Loader
|
||||
SCOREBOARD_TPS = TPS
|
||||
|
||||
SCOREBOARD_TRACE_TICKS = Ticks
|
||||
SCOREBOARD_TRACE_TNT_COUNT = Anzahl TNT
|
||||
SCOREBOARD_TRACE_TNT-COUNT = Anzahl TNT
|
||||
|
||||
# Flags
|
||||
FLAG_COLOR = Color
|
||||
@ -58,7 +58,7 @@ FLAG_PROTECT_INACTIVE = §aaus
|
||||
|
||||
FLAG_TNT_ALLOW = §aan
|
||||
FLAG_TNT_DENY = §caus
|
||||
FLAG_TNT_ONLY_TB = §7Kein §eBaurahmen
|
||||
FLAG_TNT_ONLY-TB = §7Kein §eBaurahmen
|
||||
|
||||
FLAG_DAMAGE_ALLOW = §aan
|
||||
FLAG_DAMAGE_DENY = §caus
|
||||
|
@ -40,7 +40,7 @@ public enum Permission {
|
||||
}),
|
||||
WORLDEDIT(BauweltMember::isWorldEdit, (player, target) -> {
|
||||
target.setWorldEdit(!target.isWorldEdit());
|
||||
sendMessages(player, target.isWorldEdit(), target, "PERMISSION_WORLD_EDIT");
|
||||
sendMessages(player, target.isWorldEdit(), target, "PERMISSION_WORLD-EDIT");
|
||||
}),
|
||||
MEMBER(bauweltMember -> true),
|
||||
OWNER(bauweltMember -> false);
|
||||
@ -69,15 +69,15 @@ public enum Permission {
|
||||
Player targetPlayer = Bukkit.getPlayer(SteamwarUser.get(target.getMemberID()).getUUID());
|
||||
if (targetPlayer != null) {
|
||||
if (ableTo) {
|
||||
BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER_ENABLE", targetPlayer, player.getName(), what);
|
||||
BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER-ENABLE", targetPlayer, player.getName(), what);
|
||||
} else {
|
||||
BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER_DISABLE", targetPlayer, player.getName(), what);
|
||||
BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER-DISABLE", targetPlayer, player.getName(), what);
|
||||
}
|
||||
}
|
||||
if (ableTo) {
|
||||
BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU_ENABLE", player, what);
|
||||
BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU-ENABLE", player, what);
|
||||
} else {
|
||||
BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU_DISABLE", player, what);
|
||||
BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU-DISABLE", player, what);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ public class BauScoreboard implements Listener {
|
||||
if (RecordStateMachine.getRecordStatus().isTracing()) {
|
||||
strings.add("§4");
|
||||
strings.add(colorCode + BauSystem.MESSAGE.parse("SCOREBOARD_TRACE_TICKS", p) + "§8: §7" + traceTicks());
|
||||
strings.add(colorCode + BauSystem.MESSAGE.parse("SCOREBOARD_TRACE_TNT_COUNT", p) + "§8: §7" + RecordStateMachine.size());
|
||||
strings.add(colorCode + BauSystem.MESSAGE.parse("SCOREBOARD_TRACE_TNT-COUNT", p) + "§8: §7" + RecordStateMachine.size());
|
||||
}
|
||||
|
||||
strings.add("§5");
|
||||
|
@ -29,7 +29,7 @@ public enum TNTMode implements Flag.Value<TNTMode> {
|
||||
|
||||
ALLOW("FLAG_TNT_ALLOW"),
|
||||
DENY("FLAG_TNT_DENY"),
|
||||
ONLY_TB("FLAG_TNT_ONLY_TB");
|
||||
ONLY_TB("FLAG_TNT_ONLY-TB");
|
||||
|
||||
private static TNTMode[] values;
|
||||
private final String chatValue;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren