From c6a2496d7227fa16a9ede398436ee680422c7016 Mon Sep 17 00:00:00 2001 From: marcocorriero Date: Mon, 29 May 2017 20:59:06 +0200 Subject: [PATCH] Fixed Module_players to include only active admins. Closes #1852 (#2036) With Madgeek's latest changes, the logviewer now pulls from the 'players' HTTPD module. This edit switch causes inactive admins to no longer have access to the log viewer. --- .../totalfreedommod/httpd/module/Module_players.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_players.java b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_players.java index 902c7bdf..a8810dc7 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_players.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_players.java @@ -36,7 +36,7 @@ public class Module_players extends HTTPDModule } // Admins - for (Admin admin : plugin.al.getAllAdmins().values()) + for (Admin admin : plugin.al.getActiveAdmins()) { final String username = admin.getName();