diff --git a/src/fr/neatmonster/nocheatplus/checks/chat/ChatListener.java b/src/fr/neatmonster/nocheatplus/checks/chat/ChatListener.java index 8f2b029e..798d7cb2 100644 --- a/src/fr/neatmonster/nocheatplus/checks/chat/ChatListener.java +++ b/src/fr/neatmonster/nocheatplus/checks/chat/ChatListener.java @@ -23,10 +23,8 @@ import fr.neatmonster.nocheatplus.players.Permissions; * MMMMMMMMMMM MMMMMMMMMMM */ - // TODO: SYNC - /** * Central location to listen to events that are relevant for the chat checks. */ diff --git a/src/fr/neatmonster/nocheatplus/checks/moving/NoFall.java b/src/fr/neatmonster/nocheatplus/checks/moving/NoFall.java index 200bffef..a4282f32 100644 --- a/src/fr/neatmonster/nocheatplus/checks/moving/NoFall.java +++ b/src/fr/neatmonster/nocheatplus/checks/moving/NoFall.java @@ -54,16 +54,6 @@ public class NoFall extends Check { return; } - // if (player.getName().equals("NeatMonster")) { - // player.sendMessage("---"); - // player.sendMessage("bukkit = " + player.getFallDistance()); - // player.sendMessage("ncp = " + data.noFallDistance); - // player.sendMessage("fromIsOnGround = " + from.isOnGround()); - // player.sendMessage("fromIsOnStairs = " + from.isOnStairs()); - // player.sendMessage("toIsOnGround = " + to.isOnGround()); - // player.sendMessage("toIsOnStairs = " + to.isOnStairs()); - // } - // This check is pretty much always a step behind for technical reasons. if (from.isInLiquid() || from.isOnGround() || from.isOnLadder()) // Start with zero fall distance. diff --git a/src/fr/neatmonster/nocheatplus/utilities/PlayerLocation.java b/src/fr/neatmonster/nocheatplus/utilities/PlayerLocation.java index b459f066..81810f68 100644 --- a/src/fr/neatmonster/nocheatplus/utilities/PlayerLocation.java +++ b/src/fr/neatmonster/nocheatplus/utilities/PlayerLocation.java @@ -352,6 +352,11 @@ public class PlayerLocation { return onSoulSand.get(); } + /** + * Checks if the player is on stairs. + * + * @return true, if the player is on stairs + */ public boolean isOnStairs() { if (!onStairs.isSet()) { AxisAlignedBB boundingBoxGround = boundingBox.clone();