feat: 添加Net命令 修改插件信息

This commit is contained in:
502647092
2016-03-29 23:37:27 +08:00
parent 22f57e1e81
commit bff61aea3f
4 changed files with 46 additions and 11 deletions

View File

@ -0,0 +1,30 @@
package pw.yumc.Yum.commands;
import cn.citycraft.PluginHelper.commands.HandlerCommand;
import cn.citycraft.PluginHelper.commands.HandlerCommands;
import cn.citycraft.PluginHelper.commands.InvokeCommandEvent;
import cn.citycraft.PluginHelper.commands.InvokeSubCommand;
import pw.yumc.Yum.Yum;
public class NetCommand implements HandlerCommands {
public NetCommand(final Yum yum) {
final InvokeSubCommand cmdhandler = new InvokeSubCommand(yum, "net");
cmdhandler.setAllCommandOnlyConsole(yum.config.getBoolean("onlyNetCommandConsole", false));
cmdhandler.registerCommands(this);
}
@HandlerCommand(name = "list", aliases = "l", permission = "", description = "列出联网的插件")
public void list(final InvokeCommandEvent e) {
}
@HandlerCommand(name = "off", description = "禁止插件联网", possibleArguments = "[插件名称]")
public void off(final InvokeCommandEvent e) {
}
@HandlerCommand(name = "on", description = "允许插件联网", possibleArguments = "[插件名称]")
public void on(final InvokeCommandEvent e) {
}
}