GetPlayerAclGroup: Difference between revisions
(Created page with "Get the ACL group for the given player. ==Syntax== {{#tag:pre|string {{Template:CSharp_Serverside_namespace}}ACL.GetPlayerAclGroup(Client player);}} === Required Arguments =...") |
No edit summary |
||
| Line 1: | Line 1: | ||
Get the ACL group for the given player. | Get the ACL group for the given player. | ||
{{CSharpContainer| | |||
{{#tag:pre|string {{Template:CSharp_Serverside_namespace}}ACL.GetPlayerAclGroup(Client player);}} | {{#tag:pre|string {{Template:CSharp_Serverside_namespace}}ACL.GetPlayerAclGroup(Client player);}} | ||
{{Parameters}} | |||
*'''player:''' parameter input should be in '''Client''' type | *'''player:''' parameter input should be in '''Client''' type | ||
{{Example}} | {{Example}} | ||
{{#tag:syntaxhighlight| | |||
string group = NAPI.ACL.GetPlayerAclGroup(player); | string group = NAPI.ACL.GetPlayerAclGroup(player); | ||
player.SendChatMessage($"My group is {group}."); | player.SendChatMessage($"My group is {group}."); | ||
|lang=csharp}} | |||
}} | }} | ||
[[Category:Serverside API]] | [[Category:Serverside API]] | ||
Revision as of 20:44, 27 November 2019
Get the ACL group for the given player.
C# Syntax
string NAPI.ACL.GetPlayerAclGroup(Client player);
Parameters
- player: parameter input should be in Client type
Example
string group = NAPI.ACL.GetPlayerAclGroup(player);
player.SendChatMessage($"My group is {group}.");