bugfix
- /commandgui [gui] did not work, this has been fixed - small channges
This commit is contained in:
parent
e0da2cd88d
commit
75b4a323c5
@ -30,16 +30,19 @@ public class CmdExecuter_GUI implements CommandExecutor, TabCompleter {
|
|||||||
}
|
}
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
Commands.gui(player);
|
Commands.gui(player);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (args[0].equals("admin")) {
|
if (args[0].equals("admin")) {
|
||||||
|
if (args.length == 1) {
|
||||||
|
Help.sendHelp(sender, prefix);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
switch (args[1].toLowerCase()) {
|
switch (args[1].toLowerCase()) {
|
||||||
case "info":
|
case "info":
|
||||||
if (sender.hasPermission("commandgui.command.info")) {
|
if (sender.hasPermission("commandgui.command.info")) {
|
||||||
Commands.info(sender);
|
Commands.info(sender);
|
||||||
} else sender.sendMessage(SelectMessages.NoPermissionForCommand
|
} else sender.sendMessage(SelectMessages.NoPermissionForCommand
|
||||||
.replace("[cmd]", "/commandgui admin").replace("[perm]", "commandgui.command.info"));
|
.replace("[cmd]", "/commandgui admin").replace("[perm]", "commandgui.command.info"));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "reload":
|
case "reload":
|
||||||
case "rl":
|
case "rl":
|
||||||
@ -86,10 +89,15 @@ public class CmdExecuter_GUI implements CommandExecutor, TabCompleter {
|
|||||||
default:
|
default:
|
||||||
Help.sendHelp(sender, prefix);
|
Help.sendHelp(sender, prefix);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
} else Help.sendHelp(sender, prefix);
|
if (sender instanceof Player) {
|
||||||
|
Player player = (Player) sender;
|
||||||
|
Commands.gui(player, args[0]);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Help.sendHelp(sender, prefix);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user