add return while ConsoleCommand check...

pull/1/HEAD
j502647092 2015-08-14 13:54:58 +08:00
parent 68c124102a
commit 83ea7a6c3e
1 changed files with 3 additions and 1 deletions

View File

@ -50,8 +50,10 @@ public class SimpleEssential extends JavaPlugin {
if (!command.hasPermission(sender)) {
sender.sendMessage(ChatColor.RED + "你没有此命令的权限.");
return true;
}else if(command.isOnlyPlayerExecutable() && !(sender instanceof Player)){
}
if (command.isOnlyPlayerExecutable() && !(sender instanceof Player)) {
sender.sendMessage(ChatColor.RED + "此命令只能由玩家执行.");
return true;
}
if (args.length >= command.getMinimumArguments()) {
try {