5. Use Commands {{ currentPage ? currentPage.title : "" }}

1. With PlayerTemplate: Override SP8_Override_CanUseCommand inside your Player BP.

Without PlayerTemplate: Edit the Interface Function SP8_CanUseCommand inside your Player BP.

Set the return Node to true.

Of course you can check each Command and set if the Player is allowed to use it.

Alternative you can create a variable (for each Command or all Commands) and set it to true or false, depending if you want him to allow the function.

For Muting other Players you can just allow it, because the Interface CanMuteOtherPlayer will be called also.

2. With PlayerTemplate: Override SP8_Override_CommandEntered inside your Player BP.

3. Go inside your Player BP to the Details Panel of the Chat Component and set the Command Prefix.

Create your first Command: /mute <PlayerName> <Minutes>

1. Go inside your Player BP to the Details Panel of the Chat Component and add a Command called mute.

Set it like the Image:

2. With PlayerTemplate: Go to your Function SP8_Override_CommandEntered.

Without PlayerTemplate: Go to your Interface Function SP8_CommandEntered.

Make a switch on the Command and add mute to the Switch.

3. Now we need to check if the Input does contain two Items and if the second Item is numeric (our Minutes).

That’s it, after you setup Mute, it should work like following:

  • /mute Name 15

    • The Player with the Name “Name” will be muted for 15 Minutes

  • /mute Name 0

    • The Player with the Name “Name” will be unmuted

Setup Mute: Here

Look into the SP8_ExamplePlayer inside the RPG_Essentials / Example directory and check out the Commands made in there.

{{{ content }}}