SteamWar/BauSystem2.0
Archiviert
12
0
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-07-30 19:25:30 +02:00
Ursprung 45c29e8395
Commit 1cfac014b6

Datei anzeigen

@ -69,15 +69,15 @@ public enum Permission {
Player targetPlayer = Bukkit.getPlayer(SteamwarUser.get(target.getMemberID()).getUUID()); Player targetPlayer = Bukkit.getPlayer(SteamwarUser.get(target.getMemberID()).getUUID());
if (targetPlayer != null) { if (targetPlayer != null) {
if (ableTo) { if (ableTo) {
BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER-ENABLE", targetPlayer, player.getName(), what); BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER-ENABLE", targetPlayer, player.getName(), BauSystem.MESSAGE.parse(what, targetPlayer));
} else { } else {
BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER-DISABLE", targetPlayer, player.getName(), what); BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER-DISABLE", targetPlayer, player.getName(), BauSystem.MESSAGE.parse(what, targetPlayer));
} }
} }
if (ableTo) { if (ableTo) {
BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU-ENABLE", player, what); BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU-ENABLE", player, BauSystem.MESSAGE.parse(what, player));
} else { } else {
BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU-DISABLE", player, what); BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU-DISABLE", player, BauSystem.MESSAGE.parse(what, player));
} }
} }