mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-02 08:40:01 +01:00
Add permission for speeding.
This commit is contained in:
parent
c759d24e7f
commit
7005b141cf
@ -199,6 +199,10 @@ public class SurvivalFly extends Check {
|
|||||||
if (from.isOnGround() || to.isOnGround())
|
if (from.isOnGround() || to.isOnGround())
|
||||||
data.jumpAmplifier = 0D;
|
data.jumpAmplifier = 0D;
|
||||||
|
|
||||||
|
// Speeding bypass permission:
|
||||||
|
if (hDistanceAboveLimit > 0 && player.hasPermission(Permissions.MOVING_SURVIVALFLY_SPEEDING))
|
||||||
|
hDistanceAboveLimit = 0D;
|
||||||
|
|
||||||
final double result = (Math.max(hDistanceAboveLimit, 0D) + Math.max(vDistanceAboveLimit, 0D)) * 100D;
|
final double result = (Math.max(hDistanceAboveLimit, 0D) + Math.max(vDistanceAboveLimit, 0D)) * 100D;
|
||||||
|
|
||||||
data.survivalFlyJumpPhase++;
|
data.survivalFlyJumpPhase++;
|
||||||
|
@ -139,6 +139,7 @@ public class Permissions {
|
|||||||
public static final String MOVING_SURVIVALFLY = MOVING + ".survivalfly";
|
public static final String MOVING_SURVIVALFLY = MOVING + ".survivalfly";
|
||||||
public static final String MOVING_SURVIVALFLY_BLOCKING = MOVING_SURVIVALFLY + ".blocking";
|
public static final String MOVING_SURVIVALFLY_BLOCKING = MOVING_SURVIVALFLY + ".blocking";
|
||||||
public static final String MOVING_SURVIVALFLY_SNEAKING = MOVING_SURVIVALFLY + ".sneaking";
|
public static final String MOVING_SURVIVALFLY_SNEAKING = MOVING_SURVIVALFLY + ".sneaking";
|
||||||
|
public static final String MOVING_SURVIVALFLY_SPEEDING = MOVING_SURVIVALFLY + ".speeding";
|
||||||
public static final String MOVING_SURVIVALFLY_SPRINTING = MOVING_SURVIVALFLY + ".sprinting";
|
public static final String MOVING_SURVIVALFLY_SPRINTING = MOVING_SURVIVALFLY + ".sprinting";
|
||||||
public static final String MOVING_SURVIVALFLY_STEP = MOVING_SURVIVALFLY + ".step";
|
public static final String MOVING_SURVIVALFLY_STEP = MOVING_SURVIVALFLY + ".step";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user