Fixed permissions for /stack, /locate, and /reloadwg.

This commit is contained in:
sk89q 2011-01-21 17:53:06 -08:00
parent 5cfac5da4a
commit 5b494a09ec

View File

@ -572,7 +572,7 @@ private boolean handleCommand(Player player, String cmd, String[] args)
} }
if (cmd.equalsIgnoreCase("stack")) { if (cmd.equalsIgnoreCase("stack")) {
checkPermission(player, "stack"); checkPermission(player, "/stack");
checkArgs(args, 0, 0); checkArgs(args, 0, 0);
ItemStack[] items = player.getInventory().getContents(); ItemStack[] items = player.getInventory().getContents();
@ -640,7 +640,7 @@ private boolean handleCommand(Player player, String cmd, String[] args)
} }
if (cmd.equalsIgnoreCase("locate")) { if (cmd.equalsIgnoreCase("locate")) {
checkPermission(player, "locate"); checkPermission(player, "/locate");
checkArgs(args, 0, 3); checkArgs(args, 0, 3);
if (args.length == 1) { if (args.length == 1) {
@ -688,7 +688,7 @@ private boolean handleCommand(Player player, String cmd, String[] args)
} }
if (cmd.equalsIgnoreCase("reloadwg")) { if (cmd.equalsIgnoreCase("reloadwg")) {
checkPermission(player, "reloadwg"); checkPermission(player, "/reloadwg");
checkArgs(args, 0, 0); checkArgs(args, 0, 0);
LoggerToChatHandler handler = new LoggerToChatHandler(player); LoggerToChatHandler handler = new LoggerToChatHandler(player);