From aff12edb035fd4833a9ee2e7d03e96d6d13dbd21 Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Tue, 1 Dec 2020 23:10:01 +0100 Subject: [PATCH] reordered response object and reformat reordered response object and changed senioradmins & masterbuilders to senior_admins & master_builders for consistency with the bot --- .../httpd/module/Module_list.java | 17 +++++++++-------- 1 file changed, 9 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 c8cb29fb..9e40853f 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 @@ -87,15 +87,16 @@ public class Module_list extends HTTPDModule } } } - + + // for future refernce - any multi-worded ranks are to be delimited by underscores in the json; eg. senior_admins + responseObject.put("owners", owners); + responseObject.put("executives", executives); + responseObject.put("developers", developers); + responseObject.put("senior_admins", senioradmins); + responseObject.put("admins", admins); + responseObject.put("master_builders", masterbuilders); responseObject.put("operators", operators); responseObject.put("imposters", imposters); - responseObject.put("masterbuilders", masterbuilders); - responseObject.put("admins", admins); - responseObject.put("senioradmins", senioradmins); - responseObject.put("developers", developers); - responseObject.put("executives", executives); - responseObject.put("owners", owners); responseObject.put("online", server.getOnlinePlayers().size()); responseObject.put("max", server.getMaxPlayers()); @@ -154,4 +155,4 @@ public class Module_list extends HTTPDModule { return "TotalFreedom - Online Players"; } -} \ No newline at end of file +}