mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 10:37:41 +01:00
Fixed permissions for /stack, /locate, and /reloadwg.
This commit is contained in:
parent
5cfac5da4a
commit
5b494a09ec
@ -572,7 +572,7 @@ private boolean handleCommand(Player player, String cmd, String[] args)
|
||||
}
|
||||
|
||||
if (cmd.equalsIgnoreCase("stack")) {
|
||||
checkPermission(player, "stack");
|
||||
checkPermission(player, "/stack");
|
||||
checkArgs(args, 0, 0);
|
||||
|
||||
ItemStack[] items = player.getInventory().getContents();
|
||||
@ -640,7 +640,7 @@ private boolean handleCommand(Player player, String cmd, String[] args)
|
||||
}
|
||||
|
||||
if (cmd.equalsIgnoreCase("locate")) {
|
||||
checkPermission(player, "locate");
|
||||
checkPermission(player, "/locate");
|
||||
checkArgs(args, 0, 3);
|
||||
|
||||
if (args.length == 1) {
|
||||
@ -688,7 +688,7 @@ private boolean handleCommand(Player player, String cmd, String[] args)
|
||||
}
|
||||
|
||||
if (cmd.equalsIgnoreCase("reloadwg")) {
|
||||
checkPermission(player, "reloadwg");
|
||||
checkPermission(player, "/reloadwg");
|
||||
checkArgs(args, 0, 0);
|
||||
|
||||
LoggerToChatHandler handler = new LoggerToChatHandler(player);
|
||||
|
Loading…
Reference in New Issue
Block a user