mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Clear buffs on /mcrefresh
This commit is contained in:
parent
128c24c8f6
commit
110fbe9478
@ -8,6 +8,7 @@ import org.bukkit.entity.Player;
|
|||||||
import com.gmail.nossr50.datatypes.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.McMMOPlayer;
|
||||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||||
import com.gmail.nossr50.locale.LocaleLoader;
|
import com.gmail.nossr50.locale.LocaleLoader;
|
||||||
|
import com.gmail.nossr50.skills.utilities.SkillTools;
|
||||||
import com.gmail.nossr50.util.Users;
|
import com.gmail.nossr50.util.Users;
|
||||||
|
|
||||||
public class McrefreshCommand implements CommandExecutor {
|
public class McrefreshCommand implements CommandExecutor {
|
||||||
@ -32,6 +33,7 @@ public class McrefreshCommand implements CommandExecutor {
|
|||||||
profile.resetCooldowns();
|
profile.resetCooldowns();
|
||||||
profile.resetToolPrepMode();
|
profile.resetToolPrepMode();
|
||||||
profile.resetAbilityMode();
|
profile.resetAbilityMode();
|
||||||
|
SkillTools.handleAbilitySpeedDecrease((Player) sender); //Remove enchants left over
|
||||||
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Ability.Generic.Refresh"));
|
sender.sendMessage(LocaleLoader.getString("Ability.Generic.Refresh"));
|
||||||
return true;
|
return true;
|
||||||
@ -67,6 +69,7 @@ public class McrefreshCommand implements CommandExecutor {
|
|||||||
profile.resetCooldowns();
|
profile.resetCooldowns();
|
||||||
profile.resetToolPrepMode();
|
profile.resetToolPrepMode();
|
||||||
profile.resetAbilityMode();
|
profile.resetAbilityMode();
|
||||||
|
SkillTools.handleAbilitySpeedDecrease(player); //Remove enchants left over
|
||||||
|
|
||||||
player.sendMessage(LocaleLoader.getString("Ability.Generic.Refresh"));
|
player.sendMessage(LocaleLoader.getString("Ability.Generic.Refresh"));
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mcrefresh.Success", args[0]));
|
sender.sendMessage(LocaleLoader.getString("Commands.mcrefresh.Success", args[0]));
|
||||||
|
Loading…
Reference in New Issue
Block a user