feat(bladw_warn): add warning system configuration
Create initial configuration file for the warning system with: - Predefined warning reasons (RDM, VDM, RP violations, etc.) - Chat announcement settings (enabled by default, scoped to target) - Staff group definitions for permission levels
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
BladW = BladW or {}
|
||||||
|
BladW.Warn = BladW.Warn or {}
|
||||||
|
BladW.Warn.Conf = BladW.Warn.Conf or {}
|
||||||
|
|
||||||
|
-- config des warns
|
||||||
|
BladW.Warn.Conf = {
|
||||||
|
-- les raisons proposées dans le menu déroulant du modal
|
||||||
|
reasons = {
|
||||||
|
"RDM",
|
||||||
|
"VDM",
|
||||||
|
"No Fear RP",
|
||||||
|
"Fail RP",
|
||||||
|
"Troll",
|
||||||
|
"Metagaming",
|
||||||
|
"Powergaming",
|
||||||
|
"Propos déplacés / insultes",
|
||||||
|
"Non-respect du staff",
|
||||||
|
"Publicité",
|
||||||
|
"Bug abuse",
|
||||||
|
},
|
||||||
|
|
||||||
|
-- annonce le warn dans le chat de base
|
||||||
|
chat_announce = true,
|
||||||
|
-- à qui : "all" (tout le monde) | "target" (juste l'averti) | "staff" (les admins)
|
||||||
|
chat_scope = "target",
|
||||||
|
|
||||||
|
-- groupes considérés comme "staff" (affiche le bouclier). IsAdmin() est toujours staff.
|
||||||
|
staff_groups = { "superadmin", "admin", "moderator", "modo", "helper", "support" },
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user