2016-01-19 23:58:55 +01:00
|
|
|
// Example config to showcase features
|
|
|
|
// This is a whitelist
|
2016-01-22 23:25:07 +01:00
|
|
|
"PointServerCommandFilter"
|
2016-01-19 23:58:55 +01:00
|
|
|
{
|
|
|
|
// Allow all
|
|
|
|
"say" {}
|
|
|
|
"exec" {}
|
|
|
|
|
|
|
|
// Allow "1"
|
|
|
|
mp_restartgame "1"
|
|
|
|
|
|
|
|
// Regex: Allow all cvars/commands that start with mp_
|
|
|
|
"/mp_.*/" {}
|
|
|
|
|
|
|
|
// Allow regex as paramter
|
|
|
|
"echo" "/DEBUG:.*/"
|
|
|
|
|
|
|
|
// Allow anything but
|
|
|
|
"sm"
|
|
|
|
{
|
|
|
|
"allow" {}
|
|
|
|
"deny"
|
|
|
|
{
|
|
|
|
"value" "/plugins unload/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Allow the following
|
|
|
|
"sm"
|
|
|
|
{
|
|
|
|
"allow"
|
|
|
|
{
|
|
|
|
"value" "/plugins unload/"
|
|
|
|
"value" "/plugins load/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// also like this
|
|
|
|
"sm"
|
|
|
|
{
|
|
|
|
"allow" "/plugins unload/"
|
|
|
|
"allow" "/plugins load/"
|
|
|
|
}
|
|
|
|
|
|
|
|
// Only allow values between (including) 100 and 1000
|
|
|
|
"sv_gravity"
|
|
|
|
{
|
|
|
|
"allow"
|
|
|
|
{
|
|
|
|
"min" "100"
|
|
|
|
"max" "1000"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Only allow values between 0 and 6,
|
|
|
|
// clamping if parmeter is outside of this range
|
|
|
|
// Example: 10 becomes 6 | -1 becomes 0
|
|
|
|
"mp_freezetime"
|
|
|
|
{
|
|
|
|
"clamp"
|
|
|
|
{
|
|
|
|
"min" "0"
|
|
|
|
"max" "6"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Override since clamp has no paramters
|
|
|
|
"mp_restartgame"
|
|
|
|
{
|
|
|
|
"clamp"
|
|
|
|
{
|
|
|
|
"value" "1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|