Chat Commands
Adding chat commands is as easy as making your method public
static
and adding the ChatCommand
attribute as shown below.
Example Simple Command Without Permissions
A command with a description and a required permission.
As an example here is the players
command from SDS.
players
command from SDS.This command uses a string as the return type for ease of use, it directly sends the message in chat OR in the console if ran by the console. If a command is ran by the console the player will be null. The player can NEVER be null in other cases. The console also bypass any permissions.
Last updated