Skip to content

Commit

Permalink
fixed a permissions issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jascotty2 committed Jan 27, 2012
1 parent 7e39022 commit ab544eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -7,6 +7,7 @@ updated register to 1.5 (adds 3co)
added spawn eggs to the shop
fixed an item return error when trying to sell to a chest
updated bukkit listeners to new methods
fixed permission for shopcheck (was a capitalization issue)


Version 2.1.0 - 1/10/12
Expand Down
2 changes: 1 addition & 1 deletion src/me/jascotty2/bettershop/commands/ListCommands.java
Expand Up @@ -180,7 +180,7 @@ public static boolean listAlias(CommandSender player, String[] s) {
commands = {"shopcheck", "scheck", "sc"},
aliases = {"check", "c", "price", "lookup"},
desc = "Check prices for an item",
permissions = {"Bettershop.user.check"})
permissions = {"BetterShop.user.check"})
public static boolean check(CommandSender player, String[] s) {
if (s == null || s.length == 0 || s.length > 2) {
return false;
Expand Down
1 change: 0 additions & 1 deletion src/me/jascotty2/bettershop/commands/ShopCommand.java
Expand Up @@ -24,7 +24,6 @@
import me.jascotty2.lib.bukkit.commands.NestedCommand;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.getspout.spoutapi.gui.ScreenType;
import org.getspout.spoutapi.player.SpoutPlayer;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/me/jascotty2/bettershop/enums/BetterShopPermission.java
Expand Up @@ -95,14 +95,14 @@ public enum BetterShopPermission {
* ability to add/remove shop chests
*/
ADMIN_CHESTS("BetterShop.admin.chests");
String permissionNode = null;
public final String permissionNode;

BetterShopPermission(String per) {
permissionNode = per;
}

@Override
public String toString() {
final public String toString() {
return permissionNode;
}
}

0 comments on commit ab544eb

Please sign in to comment.