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.
This commit is contained in:
marcocorriero 2017-05-29 20:59:06 +02:00 committed by Jerom van der Sar
parent baf73df4f9
commit c6a2496d72

View file

@ -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();