mirror of
https://github.com/filoghost/ChestCommands.git
synced 2025-02-19 04:51:23 +01:00
Specify what permission you are missing.
This commit is contained in:
parent
258c4c4911
commit
b9920a01d4
@ -84,7 +84,7 @@ public class CommandHandler extends CommandFramework {
|
||||
target = Bukkit.getPlayerExact(args[2]);
|
||||
} else {
|
||||
if (args.length > 2) {
|
||||
CommandValidate.isTrue(sender.hasPermission(Permissions.COMMAND_BASE + "open.others"), "You don't have permission.");
|
||||
CommandValidate.isTrue(sender.hasPermission(Permissions.COMMAND_BASE + "open.others"), "You don't have permission to open menus for others.");
|
||||
target = Bukkit.getPlayerExact(args[2]);
|
||||
} else {
|
||||
target = (Player) sender;
|
||||
|
Loading…
Reference in New Issue
Block a user