Skip to content

Commit

Permalink
Add slowness effect level to debug log.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Oct 10, 2015
1 parent dcc4e80 commit b6a5d76
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -5,6 +5,7 @@
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.util.Vector;

import fr.neatmonster.nocheatplus.NCPAPIProvider;
Expand All @@ -13,6 +14,7 @@
import fr.neatmonster.nocheatplus.logging.Streams;
import fr.neatmonster.nocheatplus.utilities.BlockProperties;
import fr.neatmonster.nocheatplus.utilities.PlayerLocation;
import fr.neatmonster.nocheatplus.utilities.PotionUtil;
import fr.neatmonster.nocheatplus.utilities.StringUtil;
import fr.neatmonster.nocheatplus.utilities.TrigUtil;
import fr.neatmonster.nocheatplus.utilities.build.BuildParameters;
Expand Down Expand Up @@ -217,6 +219,10 @@ public static void outputMoveDebug(final Player player, final PlayerLocation fro
if (speed != Double.NEGATIVE_INFINITY){
builder.append("(e_speed=" + (speed + 1) + ")");
}
final double slow = PotionUtil.getPotionEffectAmplifier(player, PotionEffectType.SLOW);
if (slow != Double.NEGATIVE_INFINITY) {
builder.append("(e_slow=" + (slow + 1) + ")");
}
if (jump != Double.NEGATIVE_INFINITY){
builder.append("(e_jump=" + (jump + 1) + ")");
}
Expand Down

0 comments on commit b6a5d76

Please sign in to comment.