Fixed Chimera Wing spamming console if Metrics was disabled

This commit is contained in:
GJ 2013-04-04 09:48:48 -04:00
parent 52746fca76
commit 0f77cf8066
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,7 @@ Version 1.4.05-dev
= Fixed ClassCastException with Taming
= Fixed huge mushroom blocks not being properly tracked
= Fixed potion buff option not using the appropriate # of ticks
= Fixed Chimera Wing spamming console if Metrics was disabled
Version 1.4.04
+ Added functions to ExperienceAPI for use with offline players

View File

@ -105,7 +105,9 @@ public final class ChimaeraWing {
player.setItemInHand(new ItemStack(getChimaeraWing(player.getItemInHand().getAmount() - Config.getInstance().getChimaeraUseCost())));
UserManager.getPlayer(player).actualizeLastChimaeraTeleport();
MetricsManager.chimeraWingUsed();
if (Config.getInstance().getStatsTrackingEnabled()) {
MetricsManager.chimeraWingUsed();
}
player.playSound(location, Sound.BAT_TAKEOFF, Misc.BAT_VOLUME, Misc.BAT_PITCH);
player.sendMessage(LocaleLoader.getString("Item.ChimaeraWing.Pass"));
}