diff options
author | okamosy <okamosy@gmail.com> | 2011-08-21 20:06:25 +0100 |
---|---|---|
committer | okamosy <okamosy@gmail.com> | 2011-08-21 20:06:25 +0100 |
commit | 0507167a197e7d43333b9d70f8161909535b976c (patch) | |
tree | d62581e7108eb2d94f775b3db8f6a7731eb412b5 | |
parent | 9127025ec3c8ee8e6b2a764eb01f1fb7c776a6a6 (diff) | |
download | Essentials-0507167a197e7d43333b9d70f8161909535b976c.tar Essentials-0507167a197e7d43333b9d70f8161909535b976c.tar.gz Essentials-0507167a197e7d43333b9d70f8161909535b976c.tar.lz Essentials-0507167a197e7d43333b9d70f8161909535b976c.tar.xz Essentials-0507167a197e7d43333b9d70f8161909535b976c.zip |
Removed commented-out code
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java index c1450046a..bc1ccd801 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java @@ -96,46 +96,4 @@ public class Commandpowertool extends EssentialsCommand charge(user); user.setPowertool(is, powertools); } - - private String appendPowerTool(User user, String command, ItemStack is, String itemName) throws Exception - { - command = command.substring(2); // Ignore the first 2 chars - /*String powertools = user.getPowertool(is); - if (powertools != null) - { - if (powertools.contains(command)) - { - throw new Exception((Util.format("powerToolAlreadySet", command, itemName))); - } - - StringBuilder newCommand = new StringBuilder(); - command = newCommand.append(powertools).append("|").append(command).toString(); - } -*/ - return command; - } - - private String removePowerTool(User user, String command, ItemStack is, String itemName) throws Exception - { - /* - String powertools = user.getPowertool(is); - if (!powertools.contains(command)) - { - throw new Exception((Util.format("powerToolNoSuchCommandAssigned", command, itemName))); - } - - command = powertools.replace(command, "").replace("||", "|"); - - // Trim off any leading/trailing '|' chars - if (command.startsWith("|")) - { - command = command.substring(1); - } - if (command.endsWith("|")) - { - command = command.substring(0, command.length() - 1); - } -*/ - return command; - } } |