From 110fbe94787a41ac46e71392fea454a1af6aabed Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 14 Feb 2013 16:56:55 -0500 Subject: [PATCH] Clear buffs on /mcrefresh --- .../com/gmail/nossr50/commands/admin/McrefreshCommand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java b/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java index bd9538e4e..c47bbfcd9 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/McrefreshCommand.java @@ -8,6 +8,7 @@ import org.bukkit.entity.Player; import com.gmail.nossr50.datatypes.McMMOPlayer; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.locale.LocaleLoader; +import com.gmail.nossr50.skills.utilities.SkillTools; import com.gmail.nossr50.util.Users; public class McrefreshCommand implements CommandExecutor { @@ -32,6 +33,7 @@ public class McrefreshCommand implements CommandExecutor { profile.resetCooldowns(); profile.resetToolPrepMode(); profile.resetAbilityMode(); + SkillTools.handleAbilitySpeedDecrease((Player) sender); //Remove enchants left over sender.sendMessage(LocaleLoader.getString("Ability.Generic.Refresh")); return true; @@ -67,6 +69,7 @@ public class McrefreshCommand implements CommandExecutor { profile.resetCooldowns(); profile.resetToolPrepMode(); profile.resetAbilityMode(); + SkillTools.handleAbilitySpeedDecrease(player); //Remove enchants left over player.sendMessage(LocaleLoader.getString("Ability.Generic.Refresh")); sender.sendMessage(LocaleLoader.getString("Commands.mcrefresh.Success", args[0]));