mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-08 00:38:27 +01:00
[Development] Oups... Don't commit too quickly NeatMonster!
This commit is contained in:
parent
a05ef7dacf
commit
388b08d2d3
@ -23,10 +23,8 @@ import fr.neatmonster.nocheatplus.players.Permissions;
|
|||||||
* MMMMMMMMMMM MMMMMMMMMMM
|
* MMMMMMMMMMM MMMMMMMMMMM
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
// TODO: SYNC
|
// TODO: SYNC
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Central location to listen to events that are relevant for the chat checks.
|
* Central location to listen to events that are relevant for the chat checks.
|
||||||
*/
|
*/
|
||||||
|
@ -54,16 +54,6 @@ public class NoFall extends Check {
|
|||||||
return;
|
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.
|
// This check is pretty much always a step behind for technical reasons.
|
||||||
if (from.isInLiquid() || from.isOnGround() || from.isOnLadder())
|
if (from.isInLiquid() || from.isOnGround() || from.isOnLadder())
|
||||||
// Start with zero fall distance.
|
// Start with zero fall distance.
|
||||||
|
@ -352,6 +352,11 @@ public class PlayerLocation {
|
|||||||
return onSoulSand.get();
|
return onSoulSand.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if the player is on stairs.
|
||||||
|
*
|
||||||
|
* @return true, if the player is on stairs
|
||||||
|
*/
|
||||||
public boolean isOnStairs() {
|
public boolean isOnStairs() {
|
||||||
if (!onStairs.isSet()) {
|
if (!onStairs.isSet()) {
|
||||||
AxisAlignedBB boundingBoxGround = boundingBox.clone();
|
AxisAlignedBB boundingBoxGround = boundingBox.clone();
|
||||||
|
Loading…
Reference in New Issue
Block a user