Add chat toggles for the events we have particle effects for.

This commit is contained in:
GJ
2013-02-19 13:25:59 -05:00
parent 5c76ef312f
commit fd47d77800
3 changed files with 32 additions and 8 deletions

View File

@ -200,7 +200,10 @@ public class SkillTools {
profile.setAbilityMode(ability, false);
profile.setAbilityInformed(ability, false);
player.playEffect(player.getEyeLocation(), Effect.POTION_BREAK, new Potion(PotionType.STRENGTH));
player.sendMessage(ability.getAbilityOff());
if (profile.useChatNotifications()) {
player.sendMessage(ability.getAbilityOff());
}
sendSkillMessage(player, ability.getAbilityPlayerOff(player));
}
@ -392,7 +395,11 @@ public class SkillTools {
int ticks = PerksUtils.handleActivationPerks(player, 2 + (profile.getSkillLevel(type) / abilityLengthIncreaseLevel), ability.getMaxTicks());
player.playEffect(player.getEyeLocation(), Effect.POTION_BREAK, new Potion(PotionType.POISON));
player.sendMessage(ability.getAbilityOn());
if (profile.useChatNotifications()) {
player.sendMessage(ability.getAbilityOn());
}
SkillTools.sendSkillMessage(player, ability.getAbilityPlayer(player));
profile.setSkillDATS(ability, System.currentTimeMillis() + (ticks * Misc.TIME_CONVERSION_FACTOR));