From 7dfd6c0b8b59465a8058d27691805f6cdd00bceb Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Wed, 16 Dec 2020 23:37:14 +0100 Subject: [PATCH] Update Module_list.java --- .../httpd/module/Module_list.java | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_list.java b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_list.java index 7af2d927..d35284cb 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_list.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/httpd/module/Module_list.java @@ -25,15 +25,20 @@ public class Module_list extends HTTPDModule if (params.get("json") != null && params.get("json").equals("true")) { 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 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()) { @@ -147,4 +152,4 @@ public class Module_list extends HTTPDModule { return "TotalFreedom - Online Players"; } -} \ No newline at end of file +}