|Constructor and Description|
Construct a new command with no permissions or aliases.
Construct a new command.
|Modifier and Type||Method and Description|
Execute this command with the specified sender and arguments.
Check if this command can be executed by the given sender.
public Command(String name)
name- the name of this command
name- primary name of this command
permission- the permission node required to execute this command, null or empty string allows it to be executed by everyone
aliases- aliases which map back to this command
public abstract void execute(CommandSender sender, String args)
sender- the executor of this command
args- arguments used to invoke this command
public boolean hasPermission(CommandSender sender)
sender- the sender to check
Copyright © 2021. All rights reserved.