mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
Display correct effect duration in seconds. Fixes BUKKIT-3983
By: Joe <mooman219@gmail.com>
This commit is contained in:
parent
5547640136
commit
9b210e419c
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));
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue