onCommand

public boolean onCommand(CommandSender sender, Command command, String label, Array<String> args)

Executes the given command, returning its success

Return

true if getClassById valid command, otherwise false

Parameters

sender

Source of the command

command

Command which was executed

label

Alias of the command which was used

args

Passed command arguments