Merge pull request #2 from AtlasMediaGroup/Elmon11-patch-1

reordered response object and reformat
This commit is contained in:
Elmon11 2020-12-02 00:16:39 +01:00 committed by GitHub
commit 4898bcf7b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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("operators", operators);
responseObject.put("imposters", imposters); 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("online", server.getOnlinePlayers().size());
responseObject.put("max", server.getMaxPlayers()); responseObject.put("max", server.getMaxPlayers());
@ -154,4 +155,4 @@ public class Module_list extends HTTPDModule
{ {
return "TotalFreedom - Online Players"; return "TotalFreedom - Online Players";
} }
} }