Remove debug
This commit is contained in:
parent
f1032e7a2e
commit
55c546e951
@ -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 leaving fly mode, don't let them take fall damage for x seconds.
|
||||||
if (!fly) {
|
if (!fly) {
|
||||||
int cooldown = P.p.getConfig().getInt("fly-falldamage-cooldown", 3);
|
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.
|
// If the value is 0 or lower, make them take fall damage.
|
||||||
// Otherwise, start a timer and have this cancel after a few seconds.
|
// 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.
|
// Short task so we're just doing it in method. Not clean but eh.
|
||||||
if (cooldown > 0) {
|
if (cooldown > 0) {
|
||||||
setTakeFallDamage(false);
|
setTakeFallDamage(false);
|
||||||
System.out.println("Fall damage: false");
|
|
||||||
Bukkit.getScheduler().runTaskLater(P.p, new Runnable() {
|
Bukkit.getScheduler().runTaskLater(P.p, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
setTakeFallDamage(true);
|
setTakeFallDamage(true);
|
||||||
System.out.println("Fall damage: true");
|
|
||||||
}
|
}
|
||||||
}, 20L * cooldown);
|
}, 20L * cooldown);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user