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:
parent
68c124102a
commit
83ea7a6c3e
@ -50,8 +50,10 @@ public class SimpleEssential extends JavaPlugin {
|
|||||||
if (!command.hasPermission(sender)) {
|
if (!command.hasPermission(sender)) {
|
||||||
sender.sendMessage(ChatColor.RED + "你没有此命令的权限.");
|
sender.sendMessage(ChatColor.RED + "你没有此命令的权限.");
|
||||||
return true;
|
return true;
|
||||||
}else if(command.isOnlyPlayerExecutable() && !(sender instanceof Player)){
|
}
|
||||||
|
if (command.isOnlyPlayerExecutable() && !(sender instanceof Player)) {
|
||||||
sender.sendMessage(ChatColor.RED + "此命令只能由玩家执行.");
|
sender.sendMessage(ChatColor.RED + "此命令只能由玩家执行.");
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
if (args.length >= command.getMinimumArguments()) {
|
if (args.length >= command.getMinimumArguments()) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user