1
0
mirror of https://e.coding.net/circlecloud/SimpleEssential.git synced 2024-11-16 01:08:46 +00:00

add return while ConsoleCommand check...

This commit is contained in:
j502647092 2015-08-14 13:54:58 +08:00
parent 68c124102a
commit 83ea7a6c3e

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 {