BanPlayer: Difference between revisions
(Created page with "Bans the player from joining the current server. {{CSharpContainer| {{#tag:syntaxhighlight|void {{Template:CSharp_Serverside_namespace}}Client.BanPlayer(Client player, strin...") |
No edit summary |
||
| Line 3: | Line 3: | ||
{{CSharpContainer| | {{CSharpContainer| | ||
{{#tag:syntaxhighlight|void {{Template:CSharp_Serverside_namespace}} | {{#tag:syntaxhighlight|void {{Template:CSharp_Serverside_namespace}}Player.BanPlayer(Player player, string reason = "");|lang=csharp}} | ||
{{Parameters}} | {{Parameters}} | ||
*'''player:''' parameter input should be in ''' | *'''player:''' parameter input should be in '''Player''' type | ||
*'''reason:''' optional parameter, input should be in '''string''' type | *'''reason:''' optional parameter, input should be in '''string''' type | ||
Latest revision as of 19:42, 22 December 2022
Bans the player from joining the current server.
C# Syntax
void NAPI.Player.BanPlayer(Player player, string reason = "");
Parameters
- player: parameter input should be in Player type
- reason: optional parameter, input should be in string type
Example
// Code here...