mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2025-09-06 22:46:58 +00:00
feat: 添加Net命令 修改插件信息
This commit is contained in:
30
src/main/java/pw/yumc/Yum/commands/NetCommand.java
Normal file
30
src/main/java/pw/yumc/Yum/commands/NetCommand.java
Normal 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) {
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user