summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoe <mooman219@gmail.com>2013-04-04 20:01:58 -0400
committerWesley Wolfe <weswolf@aol.com>2013-09-23 12:59:02 -0500
commitac59a8bdf3d2d521429eafa9ed701f23822b6498 (patch)
tree5622a839ec5039ce3e89bf312e9272afe01bb735 /src
parentacdc61fcde6fdb25e52630d252a771367e281eaf (diff)
downloadbukkit-ac59a8bdf3d2d521429eafa9ed701f23822b6498.tar
bukkit-ac59a8bdf3d2d521429eafa9ed701f23822b6498.tar.gz
bukkit-ac59a8bdf3d2d521429eafa9ed701f23822b6498.tar.lz
bukkit-ac59a8bdf3d2d521429eafa9ed701f23822b6498.tar.xz
bukkit-ac59a8bdf3d2d521429eafa9ed701f23822b6498.zip
Display correct effect duration in seconds. Fixes BUKKIT-3983
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/command/defaults/EffectCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/command/defaults/EffectCommand.java b/src/main/java/org/bukkit/command/defaults/EffectCommand.java
index 8d9b7425..1d5f8be6 100644
--- a/src/main/java/org/bukkit/command/defaults/EffectCommand.java
+++ b/src/main/java/org/bukkit/command/defaults/EffectCommand.java
@@ -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;