mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 10:39:05 +00:00
27 lines
713 B
Java
27 lines
713 B
Java
package mineverse.Aust1n46.chat.command;
|
|
|
|
import org.bukkit.command.Command;
|
|
import org.bukkit.command.CommandExecutor;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
//This class is a subclass of Bukkit's command class that is used for registering customizable commands, such as aliases
|
|
//and channel aliases.
|
|
public class CCommand extends Command {
|
|
|
|
private CommandExecutor exe = null;
|
|
|
|
public CCommand(String name) {
|
|
super(name);
|
|
}
|
|
|
|
public boolean execute(CommandSender sender, String commandLabel, String[] args) {
|
|
if(exe != null) {
|
|
exe.onCommand(sender, this, commandLabel, args);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public void setExecutor(CommandExecutor exe) {
|
|
this.exe = exe;
|
|
}
|
|
} |