breakout gmlevel into a scoped enum (#996)

* breakout gmlevel enum and make it a class
tested that things still work
slash command,
chat restrictions,
packets and serializations

* fix GM level for some slash commands

* fix new use of this enum
This commit is contained in:
Aaron Kimbrell
2023-03-24 18:16:45 -05:00
committed by GitHub
parent b967cc57d1
commit 72ca0f13ff
24 changed files with 184 additions and 159 deletions

View File

@@ -128,13 +128,13 @@ There are 9 Game master levels
|Level|Variable Name|Description|
|--- |--- |--- |
|0|GAME_MASTER_LEVEL_CIVILIAN|Normal player|
|1|GAME_MASTER_LEVEL_FORUM_MODERATOR|Forum moderator. No permissions on live servers.|
|2|GAME_MASTER_LEVEL_JUNIOR_MODERATOR|Can kick/mute and pull chat logs|
|3|GAME_MASTER_LEVEL_MODERATOR|Can return lost items|
|4|GAME_MASTER_LEVEL_SENIOR_MODERATOR|Can ban|
|5|GAME_MASTER_LEVEL_LEAD_MODERATOR|Can approve properties|
|6|GAME_MASTER_LEVEL_JUNIOR_DEVELOPER|Junior developer & future content team. Civilan on live.|
|7|GAME_MASTER_LEVEL_INACTIVE_DEVELOPER|Inactive developer, limited permissions.|
|8|GAME_MASTER_LEVEL_DEVELOPER|Active developer, full permissions on live.|
|9|GAME_MASTER_LEVEL_OPERATOR|Can shutdown server for restarts & updates.|
|0|CIVILIAN|Normal player|
|1|FORUM_MODERATOR|Forum moderator. No permissions on live servers.|
|2|JUNIOR_MODERATOR|Can kick/mute and pull chat logs|
|3|MODERATOR|Can return lost items|
|4|SENIOR_MODERATOR|Can ban|
|5|LEAD_MODERATOR|Can approve properties|
|6|JUNIOR_DEVELOPER|Junior developer & future content team. Civilan on live.|
|7|INACTIVE_DEVELOPER|Inactive developer, limited permissions.|
|8|DEVELOPER|Active developer, full permissions on live.|
|9|OPERATOR|Can shutdown server for restarts & updates.|