- Decompose all 11 god-classes (>200 lines) into facade + collaborators (command/, schematic/, config/, generator/, mode/, papi/, adaptive/, storage/, player/, leaderboard/) — every file is now <=200 lines - Add PMD 7 (report-only) + stricter checkstyle rules (NPath, IllegalCatch, NestedDepth, Whitespace, MissingOverride); fix real bugs found (printStackTrace, resource leaks in ConfigLoader/SQLStatsStorage) - docs/ARCHITECTURE.md: target structure + 'one folder = one purpose' rule - Pilot restructure: command/core|util/, mode/impl/solo|multi|barrier/, hook/papi/resolver/; cross-package classes made public - TODO.md: track warning cleanup (132-138) + restructure progress
14 lines
No EOL
321 B
Java
14 lines
No EOL
321 B
Java
package dev.loki.loparkour.command.util;
|
|
|
|
import dev.loki.loparkour.util.text.ColorUtil;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
public final class CommandUtil {
|
|
|
|
private CommandUtil() {
|
|
}
|
|
|
|
public static void send(CommandSender sender, String msg) {
|
|
sender.sendMessage(ColorUtil.color(msg));
|
|
}
|
|
} |