修复命令失效问题...

Signed-off-by: 502647092 <jtb1@163.com>
master
502647092 2016-02-08 02:09:15 +08:00
parent 00f78588ad
commit 4c4eb95d54
2 changed files with 4 additions and 4 deletions

View File

@ -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>&amp;c修复跳板权限问题...</update.description>
<update.description>&amp;c修复跳板命令问题...</update.description>
<update.changes></update.changes>
<env.GIT_COMMIT>DEBUG</env.GIT_COMMIT>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -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);