75 lines
		
	
	
		
			1003 B
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			1003 B
		
	
	
	
		
			INI
		
	
	
	
	
	
// Example config to showcase features
 | 
						|
// This is a whitelist
 | 
						|
"PointServerCommandFilter"
 | 
						|
{
 | 
						|
	// 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"
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |