-
Notifications
You must be signed in to change notification settings - Fork 0
Constants
PEMapModder edited this page Aug 30, 2015
·
3 revisions
Some constants are used in the API responses.
Class refers to gametype. Objects like chat messages, kits, purchases, and of course, servers, have a class field referring to the gametype they belong to (e.g. the chat message is only broadcasted to hub servers, that purchase is only used by KitPvP servers, etc.).
| Constant value | Explanation |
|---|---|
| 0 | Wildcard - all servers |
| 1 | Hub servers |
| 2 | KitPvP servers |
| 3 | Parkour servers |
| 4 | Spleef servers |
| 5 | Infected servers |
| 6 | Classic servers |
The status of a player can be offline (0), online (1) or transferring (2).
The approval status of a label can be:
| Constant value | Explanation |
|---|---|
| 0 | not approved (not handled) |
| 1 | everyone can use |
| 2 | only donators can use |
| 3 | only VIPs can use |
| 4 | only moderators can use |
| 5 | only admins can use |
| -1 | rejected by admin |
| 32 | rejected by admin (due to technical issues, the value may be -1 or 32) |