Class EnumProtectionLevelExtension
- Namespace
- Vintagestory.API.Server
- Assembly
- VintagestoryAPI.dll
public static class EnumProtectionLevelExtension
- Inheritance
-
EnumProtectionLevelExtension
- Inherited Members
Methods
ShouldLog(EnumProtectionLevel)
If a violation is detected, should the server log it
public static bool ShouldLog(this EnumProtectionLevel state)
Parameters
stateEnumProtectionLevel
Returns
- bool
true for LogOnly,Basic,Pedantic
ShouldModerate(EnumProtectionLevel)
Should moderation action take place like preventing interactions, kicking or banning
public static bool ShouldModerate(this EnumProtectionLevel state)
Parameters
stateEnumProtectionLevel
Returns
- bool
true for Basic, Pedantic