This BPI needs to be added to the Actor, which contains the SP8_ChatComponent
Functions
Message
Function | Called | Description | Default Use-Case |
CanSendMessage | Server & Client | Check if the Player can send a Message. | Will be called if you call SendMessage. |
GetPlayerName | Server | Get the Name of the Player | Needs to be used, to get the Name of the Player |
GetChatColor | Server | Overrides the default Name Color and/or the Message Color. | Will be called if you call SendMessage. |
Command
Function | Called | Description | Default Use-Case |
CanUseCommand | Server & Client | Check if the Player can send a Command. | Will be called if you call SendMessage, starts with the CommandPrefix and if the Command is not usable by everyone. |
CommandEntered | Server or Client Depends if the Command Options is set to Server or Client. | n this Function you can set what is going to happen, if the Command is called. The Input Variable contains everything after <Prefix><Command>. Example: /Mute 1 2 3 The Input would contain [1,2,3]. | Called if the Message is a valid Command and the Player is allowed to send it. |
Moderation
Function | Called | Description | Default Use-Case |
CanWarnOtherPlayer | Server & Client | Check if the Player can Warn other Players | Will be called, if you call WarnOtherPlayer |
CanMuteOtherPlayer | Server & Client | Check if the Player can Mute other Players. | Will be called if you call MuteOtherPlayer |