diff --git a/pom.xml b/pom.xml
index aa6f2b3..d85f8e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -58,8 +58,9 @@
http://ci.yumc.pw/job/${project.artifactId}/
- &a全新 2.0 版本 震撼发布...
+ &a全新 2.1 版本 添加网络管理...
+ &b2.1 &6- &e新增网络管理 防止主线程卡IO...;
&b2.0.3 &6- &a重载所有插件时忽略部分已注册服务插件...;
&b2.0.2 &6- &c修复检查可更新插件功能导致全局更新失效问题...;
&b &6- &d新增全局更新限制 无法同时进行 防止错误...;
@@ -68,10 +69,6 @@
UTF-8
-
- spigot-repo
- https://hub.spigotmc.org/nexus/content/groups/public/
-
yumc-repo
http://repo.yumc.pw/content/groups/public/
diff --git a/src/main/java/pw/yumc/Yum/commands/NetCommand.java b/src/main/java/pw/yumc/Yum/commands/NetCommand.java
new file mode 100644
index 0000000..4695cc2
--- /dev/null
+++ b/src/main/java/pw/yumc/Yum/commands/NetCommand.java
@@ -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) {
+
+ }
+}
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index f1282f4..2240b76 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -1,8 +1,14 @@
Version: 2.1
-#是否只允许控制台执行插件命令
+#是否只允许控制台执行插件仓库命令
onlyCommandConsole: false
-#是否只允许控制台执行插件文件命令
+#是否只允许控制台执行插件网络管理命令
+onlyNetCommandConsole: false
+#是否只允许控制台执行插件文件管理命令
onlyFileCommandConsole: true
+#网络调试模式
+NetworkDebug: false
+#是否允许插件主线程访问网络
+AllowPrimaryThread: false
#禁止rm -rf的文件夹列表
blacklist:
- 'plugins'
@@ -14,7 +20,3 @@ ignorelist:
- 'iConomy'
- 'GroupManager'
- 'PermissionsEx'
-#网络调试模式
-NetworkDebug: false
-#是否允许插件主线程访问网络
-AllowPrimaryThread: false
\ No newline at end of file
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 9950447..12b85c2 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -11,6 +11,12 @@ commands:
usage: §6使用§a/yum help§6查看帮助!
permission: yum.use
permission-message: §c你没有 的权限来执行此命令!
+ net:
+ description: MC插件网络管理
+ aliases: [n]
+ usage: §6使用§a/net help§6查看帮助!
+ permission: net.use
+ permission-message: §c你没有 的权限来执行此命令!
file:
description: MC文件管理命令
aliases: [f]