mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Actually display correct effect duration in seconds. Fixes BUKKIT-3983
This commit is contained in:
parent
ac59a8bdf3
commit
e76be09ae5
1 changed files with 1 additions and 1 deletions
|
@ -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 / 20D));
|
||||
broadcastCommandMessage(sender, String.format("Given %s (ID %d) * %d to %s for %d seconds", effect.getName(), effect.getId(), amplification, args[0], duration_temp));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue