IsAclEnabled: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
{{CSharpContainer| | {{CSharpContainer| | ||
{{#tag:pre|bool {{Template:CSharp_Serverside_namespace}}ACL.IsAclEnabled();}} | {{#tag:pre|bool {{Template:CSharp_Serverside_namespace}}ACL.IsAclEnabled();}} | ||
{{Example}} | {{Example}} | ||
{{#tag:syntaxhighlight| | {{#tag:syntaxhighlight| | ||
if ( | if ({{Template:CSharp_Serverside_namespace}}ACL.IsAclEnabled()) | ||
{ | { | ||
// Do stuff... | // Do stuff... | ||
}lang=csharp}} | }|lang=csharp}} | ||
}} | }} | ||
[[Category:Serverside API]] | [[Category:Serverside API]] | ||
Latest revision as of 18:15, 28 November 2019
Checks whether the ACL is enabled or not.
C# Syntax
bool NAPI.ACL.IsAclEnabled();
Example
if (NAPI.ACL.IsAclEnabled())
{
// Do stuff...
}