Remove debug

This commit is contained in:
Trent Hensler 2018-03-18 20:38:59 -07:00
parent f1032e7a2e
commit 55c546e951
1 changed files with 0 additions and 3 deletions

View File

@ -924,19 +924,16 @@ public abstract class MemoryFPlayer implements FPlayer {
// If leaving fly mode, don't let them take fall damage for x seconds.
if (!fly) {
int cooldown = P.p.getConfig().getInt("fly-falldamage-cooldown", 3);
System.out.println("Setting falldamage cooldown.");
// If the value is 0 or lower, make them take fall damage.
// Otherwise, start a timer and have this cancel after a few seconds.
// Short task so we're just doing it in method. Not clean but eh.
if (cooldown > 0) {
setTakeFallDamage(false);
System.out.println("Fall damage: false");
Bukkit.getScheduler().runTaskLater(P.p, new Runnable() {
@Override
public void run() {
setTakeFallDamage(true);
System.out.println("Fall damage: true");
}
}, 20L * cooldown);
}