Navigation
Unreal Engine C++ API Reference > Runtime > Engine > GameFramework > AGameSession
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/GameSession.h |
Include | #include "GameFramework/GameSession.h" |
Source | /Engine/Source/Runtime/Engine/Private/GameSession.cpp |
virtual bool BanPlayer
&40;
APlayerController &42; BannedPlayer,
const FText & BanReason
&41;
Remarks
Forcibly remove player from the server and ban them permanently true if player was able to be banned, false otherwise
Parameters
Name | Description |
---|---|
BannedPlayer | player to ban |
KickReason | text reason to display to player |