[Development] Oups... Don't commit too quickly NeatMonster!

This commit is contained in:
NeatMonster 2012-08-08 18:26:54 +02:00
parent a05ef7dacf
commit 388b08d2d3
3 changed files with 5 additions and 12 deletions

View File

@ -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.
*/

View File

@ -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.

View File

@ -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();