Archiviert
13
0

Update FreezeCommand

Dieser Commit ist enthalten in:
yoyosource 2021-12-24 23:35:19 +01:00
Ursprung c4bc186331
Commit 6a9d6220a7

Datei anzeigen

@ -39,11 +39,11 @@ public class FreezeCommand extends SWCommand {
public void toggleCommand(@Guard Player p) {
if (toggle()) {
Bukkit.getOnlinePlayers().forEach(player -> {
Teamserver.MESSAGE.send(getEnableMessage(), player, ChatMessageType.ACTION_BAR);
Teamserver.MESSAGE.sendPrefixless(getEnableMessage(), player, ChatMessageType.ACTION_BAR);
});
} else {
Bukkit.getOnlinePlayers().forEach(player -> {
Teamserver.MESSAGE.send(getDisableMessage(), player, ChatMessageType.ACTION_BAR);
Teamserver.MESSAGE.sendPrefixless(getDisableMessage(), player, ChatMessageType.ACTION_BAR);
});
}
}