mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-11 14:21:40 +01:00
Actually display correct effect duration in seconds. Fixes BUKKIT-3983
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
9b210e419c
commit
5b7e75839f
@ -100,7 +100,7 @@ public class EffectCommand extends VanillaCommand {
|
|||||||
final PotionEffect applyEffect = new PotionEffect(effect, duration, amplification);
|
final PotionEffect applyEffect = new PotionEffect(effect, duration, amplification);
|
||||||
|
|
||||||
player.addPotionEffect(applyEffect, true);
|
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;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user