Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed remove permission

  • Loading branch information...
commit ff86cd2d3cbd1b5a500d94a4a4dbb8ca653bb42e 1 parent 6946443
Dinner Bone Dinnerbone authored
4 src/main/java/com/dinnerbone/bukkit/scrap/commands/TakePluginCommand.java
@@ -44,10 +44,10 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
44 44 }
45 45 }
46 46
47   - if ((player == sender) && (!sender.hasPermission("scrapbukkit.take.self"))) {
  47 + if ((player == sender) && (!sender.hasPermission("scrapbukkit.remove.self"))) {
48 48 sender.sendMessage(ChatColor.RED + "You do not have permission to remove your own items");
49 49 return true;
50   - } else if (!sender.hasPermission("scrapbukkit.take.other")) {
  50 + } else if (!sender.hasPermission("scrapbukkit.remove.other")) {
51 51 sender.sendMessage(ChatColor.RED + "You do not have permission to remove items from " + player.getDisplayName());
52 52 return true;
53 53 }

0 comments on commit ff86cd2

Please sign in to comment.
Something went wrong with that request. Please try again.