mirror of
https://e.coding.net/circlecloud/JumpPlate.git
synced 2024-12-28 07:49:11 +00:00
修复命令失效问题...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
00f78588ad
commit
4c4eb95d54
4
pom.xml
4
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>cn.citycraft</groupId>
|
||||
<artifactId>JumpPlate</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2</version>
|
||||
<name>JumpPlate</name>
|
||||
<build>
|
||||
<finalName>${project.name}</finalName>
|
||||
@ -54,7 +54,7 @@
|
||||
</build>
|
||||
<properties>
|
||||
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
|
||||
<update.description>&c修复跳板权限问题...</update.description>
|
||||
<update.description>&c修复跳板命令问题...</update.description>
|
||||
<update.changes></update.changes>
|
||||
<env.GIT_COMMIT>DEBUG</env.GIT_COMMIT>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
@ -134,13 +134,13 @@ public class JumpPlate extends JavaPlugin implements Listener, HandlerCommands {
|
||||
}
|
||||
|
||||
@HandlerCommand(name = "reload", description = "重载插件配置", permission = "JumpPlate.reload")
|
||||
private void reloadCommand(final CommandSender sender, final Command command, final String label, final String[] args) {
|
||||
public void reloadCommand(final CommandSender sender, final Command command, final String label, final String[] args) {
|
||||
this.onLoad();
|
||||
sender.sendMessage(pluginname + "§a配置文件已重载!");
|
||||
}
|
||||
|
||||
@HandlerCommand(name = "set", description = "设置基岩跳板高度", minimumArguments = 1, onlyPlayerExecutable = true, permission = "JumpPlate.reload", possibleArguments = "<跳板高度(1-10)>")
|
||||
private void setCommand(final CommandSender sender, final Command command, final String label, final String[] args) {
|
||||
public void setCommand(final CommandSender sender, final Command command, final String label, final String[] args) {
|
||||
try {
|
||||
final double drb = Double.parseDouble(args[0]);
|
||||
config.set("BEDROCK", drb);
|
||||
|
Loading…
Reference in New Issue
Block a user