mirror of
https://e.coding.net/circlecloud/Yum.git
synced 2024-12-23 05:08:47 +00:00
feat: 添加Net命令 修改插件信息
This commit is contained in:
parent
22f57e1e81
commit
bff61aea3f
7
pom.xml
7
pom.xml
@ -58,8 +58,9 @@
|
||||
<url>http://ci.yumc.pw/job/${project.artifactId}/</url>
|
||||
</ciManagement>
|
||||
<properties>
|
||||
<update.description>&a全新 2.0 版本 震撼发布...</update.description>
|
||||
<update.description>&a全新 2.1 版本 添加网络管理...</update.description>
|
||||
<update.changes>
|
||||
&b2.1 &6- &e新增网络管理 防止主线程卡IO...;
|
||||
&b2.0.3 &6- &a重载所有插件时忽略部分已注册服务插件...;
|
||||
&b2.0.2 &6- &c修复检查可更新插件功能导致全局更新失效问题...;
|
||||
&b &6- &d新增全局更新限制 无法同时进行 防止错误...;
|
||||
@ -68,10 +69,6 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spigot-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>yumc-repo</id>
|
||||
<url>http://repo.yumc.pw/content/groups/public/</url>
|
||||
|
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) {
|
||||
|
||||
}
|
||||
}
|
@ -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
|
@ -11,6 +11,12 @@ commands:
|
||||
usage: §6使用§a/yum help§6查看帮助!
|
||||
permission: yum.use
|
||||
permission-message: §c你没有 <permission> 的权限来执行此命令!
|
||||
net:
|
||||
description: MC插件网络管理
|
||||
aliases: [n]
|
||||
usage: §6使用§a/net help§6查看帮助!
|
||||
permission: net.use
|
||||
permission-message: §c你没有 <permission> 的权限来执行此命令!
|
||||
file:
|
||||
description: MC文件管理命令
|
||||
aliases: [f]
|
||||
|
Loading…
Reference in New Issue
Block a user