Permalink
Browse files

Fixed remove permission

  • Loading branch information...
Dinnerbone committed Jul 20, 2011
1 parent 6946443 commit ff86cd2d3cbd1b5a500d94a4a4dbb8ca653bb42e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/dinnerbone/bukkit/scrap/commands/TakePluginCommand.java
@@ -44,10 +44,10 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
}
}
- if ((player == sender) && (!sender.hasPermission("scrapbukkit.take.self"))) {
+ if ((player == sender) && (!sender.hasPermission("scrapbukkit.remove.self"))) {
sender.sendMessage(ChatColor.RED + "You do not have permission to remove your own items");
return true;
- } else if (!sender.hasPermission("scrapbukkit.take.other")) {
+ } else if (!sender.hasPermission("scrapbukkit.remove.other")) {
sender.sendMessage(ChatColor.RED + "You do not have permission to remove items from " + player.getDisplayName());
return true;
}

0 comments on commit ff86cd2

Please sign in to comment.