Update Module_list.java

This commit is contained in:
Elmon11 2020-12-16 23:37:14 +01:00 committed by GitHub
parent fa5c774f45
commit 7dfd6c0b8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,15 +25,20 @@ public class Module_list extends HTTPDModule
if (params.get("json") != null && params.get("json").equals("true")) if (params.get("json") != null && params.get("json").equals("true"))
{ {
final JSONObject responseObject = new JSONObject(); final JSONObject responseObject = new JSONObject();
final JSONArray owners = new JSONArray();
final JSONArray executives = new JSONArray();
final JSONArray developers = new JSONArray();
final JSONArray senioradmins = new JSONArray();
final JSONArray admins = new JSONArray();
final JSONArray masterbuilders = new JSONArray();
final JSONArray operators = new JSONArray(); final JSONArray operators = new JSONArray();
final JSONArray imposters = new JSONArray(); final JSONArray imposters = new JSONArray();
final JSONArray masterbuilders = new JSONArray();
final JSONArray admins = new JSONArray();
final JSONArray senioradmins = new JSONArray();
final JSONArray developers = new JSONArray();
final JSONArray executives = new JSONArray();
final JSONArray owners = new JSONArray();
for (Player player : Bukkit.getOnlinePlayers()) for (Player player : Bukkit.getOnlinePlayers())
{ {
@ -147,4 +152,4 @@ public class Module_list extends HTTPDModule
{ {
return "TotalFreedom - Online Players"; return "TotalFreedom - Online Players";
} }
} }