Display correct effect duration in seconds. Fixes BUKKIT-3983

This commit is contained in:
Joe
2013-04-04 20:01:58 -04:00
committed by Wesley Wolfe
parent 13add0250e
commit 7ab753599a

View File

@@ -100,7 +100,7 @@ public class EffectCommand extends VanillaCommand {
final PotionEffect applyEffect = new PotionEffect(effect, duration, amplification);
player.addPotionEffect(applyEffect, true);
broadcastCommandMessage(sender, String.format("Given %s (ID %d) * %d to %s for %d seconds", effect.getName(), effect.getId(), amplification, args[0], duration));
broadcastCommandMessage(sender, String.format("Given %s (ID %d) * %d to %s for %d seconds", effect.getName(), effect.getId(), amplification, args[0], duration / 20D));
}
return true;