From 53c59919717cf22b9e728ef21703922a23d360f9 Mon Sep 17 00:00:00 2001 From: Video Date: Wed, 26 May 2021 03:55:49 -0600 Subject: [PATCH] Addresses FS-224 (#70) --- .../totalfreedom/totalfreedommod/LoginProcess.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/LoginProcess.java b/src/main/java/me/totalfreedom/totalfreedommod/LoginProcess.java index 90a3a4ea..2cbe79de 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/LoginProcess.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/LoginProcess.java @@ -240,17 +240,9 @@ public class LoginProcess extends FreedomService if (noteCount != 0) { String noteMessage = "This player has " + noteCount + " admin note" + (noteCount > 1 ? "s" : "") + "."; - JSONMessage notice = JSONMessage.create(ChatColor.GOLD + noteMessage + " Click here to view them.") - .tooltip("Click here to view them.") - .runCommand("/notes " + player.getName() + " list"); FLog.info(noteMessage); - for (Player p : server.getOnlinePlayers()) - { - if (plugin.al.isAdmin(p)) - { - notice.send(p); - } - } + plugin.al.messageAllAdmins(ChatColor.GOLD + noteMessage); + plugin.al.messageAllAdmins(ChatColor.GOLD + "Do " + ChatColor.YELLOW + "/notes " + player.getName() + " list" + ChatColor.GOLD + " to view them."); } }