fix: zero checkstyle warnings, exclude test sources, fix LineLength

This commit is contained in:
loki5512344 2026-07-05 13:51:48 +02:00
parent 4efccd3968
commit dd0fb0f10d
26 changed files with 43 additions and 20 deletions

View file

@ -33,7 +33,8 @@ public class GlobalChatCommand implements CommandExecutor {
if (command.getName().equalsIgnoreCase("globalchat")) {
if (args.length > 0 && args[0].equalsIgnoreCase("toggle")) {
boolean enabled = chatService.toggleGlobalChat(player.getUniqueId());
player.sendMessage(ChatFormatter.parse(plugin.getMessageConfig().get(enabled ? "global.toggled-on" : "global.toggled-off")));
player.sendMessage(ChatFormatter.parse(
plugin.getMessageConfig().get(enabled ? "global.toggled-on" : "global.toggled-off")));
} else {
player.sendMessage(ChatFormatter.parse(plugin.getMessageConfig().getInvalidUsage("/globalchat toggle")));
}