diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-04-04 00:39:59 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-04-04 00:39:59 +0100 |
commit | 195604997b6d069e11d843c891add65f23c8f794 (patch) | |
tree | bf3ed522d12e489f8297e3861aa473ee6e2da988 | |
parent | a3a3f81e1153a832f47f8b75ac4fa4c4f1589ef4 (diff) | |
download | Essentials-195604997b6d069e11d843c891add65f23c8f794.tar Essentials-195604997b6d069e11d843c891add65f23c8f794.tar.gz Essentials-195604997b6d069e11d843c891add65f23c8f794.tar.lz Essentials-195604997b6d069e11d843c891add65f23c8f794.tar.xz Essentials-195604997b6d069e11d843c891add65f23c8f794.zip |
Enable powertools if they are disabled when setting a new tool.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java index ca03364b2..679937897 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandpowertool.java @@ -110,6 +110,10 @@ public class Commandpowertool extends EssentialsCommand user.sendMessage(_("powerToolRemoveAll", itemName)); } + if (!user.arePowerToolsEnabled()) { + user.setPowerToolsEnabled(true); + user.sendMessage(_("powerToolsEnabled")); + } user.setPowertool(itemStack, powertools); } } |