From 195604997b6d069e11d843c891add65f23c8f794 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Wed, 4 Apr 2012 00:39:59 +0100 Subject: [PATCH] Enable powertools if they are disabled when setting a new tool. --- .../com/earth2me/essentials/commands/Commandpowertool.java | 4 ++++ 1 file changed, 4 insertions(+) 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); } }