mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
reordered response object and reformat
reordered response object and changed senioradmins & masterbuilders to senior_admins & master_builders for consistency with the bot
This commit is contained in:
parent
c0a7ee1bb6
commit
aff12edb03
@ -88,14 +88,15 @@ 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());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user