27 lines
629 B
Java
27 lines
629 B
Java
package cn.citycraft.CTZServer.commands;
|
|
|
|
import org.bukkit.command.Command;
|
|
import org.bukkit.command.CommandException;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
/**
|
|
* 基础命令类
|
|
*
|
|
* @author 蒋天蓓
|
|
* 2015年8月12日下午12:49:34
|
|
*/
|
|
public interface DefaultCommand {
|
|
|
|
/**
|
|
* 默认命令执行接口
|
|
*
|
|
* @param sender
|
|
* - 命令发送者
|
|
* @param label
|
|
* - 命令
|
|
* @throws CommandException
|
|
* - 命令异常
|
|
*/
|
|
public abstract void defaultexecute(CommandSender sender, Command command, String label) throws CommandException;
|
|
}
|