Add disable broadcast

Prevents public embarassment. Some anarchy server owners like myself want to kick those who have certain hacks but don't want their kick to be publicly known.
This commit is contained in:
Gabriel Curtiss committed 2020-09-13 23:39:01 -05:00
1 parent 3b9b39c49a
commit ef5b4069ce
4 files changed
+7 -3

No files matched your search

@@ -89,6 +89,7 @@ public class LoggingManager {
}
public void logToPlayers(String message) {
if(!config.getConfig().disableBroadcast.getValue()) return;
for(Player player : Bukkit.getOnlinePlayers()) {
if (Permission.SYSTEM_NOTICE.get(player)) {
player.sendMessage(message);
@@ -96,7 +97,7 @@ public class LoggingManager {
}
}
private void logToLogs(String message) { // Yo dawg
private void logToLogs(String message) { // Yo dawg, you like logs?
logs.add(ChatColor.stripColor(message));
}