mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
This commit is contained in:
1 parent
1f48785d1d
commit
768331011e
11 files changed
+41
-48
No files matched your search
@@ -80,7 +80,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.spigotmc</groupId>
|
<groupId>org.spigotmc</groupId>
|
||||||
<artifactId>spigot</artifactId>
|
<artifactId>spigot</artifactId>
|
||||||
<version>1.16.1-R0.1-SNAPSHOT</version>
|
<version>1.16.2-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|||||||
@@ -152,5 +152,4 @@ public class AntiCheatAPI {
|
|||||||
return AntiCheatReloaded.getManager();
|
return AntiCheatReloaded.getManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -619,10 +619,6 @@ public class Backend {
|
|||||||
ElytraCheck.JUMP_Y_VALUE.remove(player.getUniqueId());
|
ElytraCheck.JUMP_Y_VALUE.remove(player.getUniqueId());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void logExitFly(final Player player) {
|
|
||||||
FlightCheck.MOVING_EXEMPT.put(player.getUniqueId(), System.currentTimeMillis() + magic.EXIT_FLY_TIME());
|
|
||||||
}
|
|
||||||
|
|
||||||
public void logBoatCollision(final Player player) {
|
public void logBoatCollision(final Player player) {
|
||||||
// TODO config??
|
// TODO config??
|
||||||
FlightCheck.MOVING_EXEMPT.put(player.getUniqueId(), System.currentTimeMillis() + 100 /* 2 ticks */);
|
FlightCheck.MOVING_EXEMPT.put(player.getUniqueId(), System.currentTimeMillis() + 100 /* 2 ticks */);
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
@@ -59,6 +60,8 @@ public class KillAuraCheck {
|
|||||||
double allowedReach = target.getVelocity().length() < 0.08
|
double allowedReach = target.getVelocity().length() < 0.08
|
||||||
? checksConfig.getDouble(CheckType.KILLAURA, "reach", "baseMaxValue.normal")
|
? checksConfig.getDouble(CheckType.KILLAURA, "reach", "baseMaxValue.normal")
|
||||||
: checksConfig.getDouble(CheckType.KILLAURA, "reach", "baseMaxValue.velocitized");
|
: checksConfig.getDouble(CheckType.KILLAURA, "reach", "baseMaxValue.velocitized");
|
||||||
|
if (player.getGameMode() == GameMode.CREATIVE)
|
||||||
|
allowedReach += 1.5D;
|
||||||
// Lag compensation
|
// Lag compensation
|
||||||
double lagExtraReach = checksConfig.getDouble(CheckType.KILLAURA, "reach", "lagCompensation.lagExtraReach");
|
double lagExtraReach = checksConfig.getDouble(CheckType.KILLAURA, "reach", "lagCompensation.lagExtraReach");
|
||||||
double pingCompensation = checksConfig.getDouble(CheckType.KILLAURA, "reach",
|
double pingCompensation = checksConfig.getDouble(CheckType.KILLAURA, "reach",
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
package com.rammelkast.anticheatreloaded.check.movement;
|
package com.rammelkast.anticheatreloaded.check.movement;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
@@ -42,7 +43,8 @@ public class StrafeCheck {
|
|||||||
|
|
||||||
public static CheckResult runCheck(Player player, double x, double z, Location from, Location to) {
|
public static CheckResult runCheck(Player player, double x, double z, Location from, Location to) {
|
||||||
if (!Utilities.cantStandAtExp(from) || !Utilities.cantStandAtExp(to) || Utilities.isNearWater(player)
|
if (!Utilities.cantStandAtExp(from) || !Utilities.cantStandAtExp(to) || Utilities.isNearWater(player)
|
||||||
|| Utilities.isNearClimbable(player) || VersionUtil.isFlying(player) || player.isDead())
|
|| Utilities.isNearClimbable(player) || VersionUtil.isFlying(player) || player.isDead()
|
||||||
|
|| Utilities.isHalfblock(to.getBlock().getRelative(BlockFace.DOWN)))
|
||||||
return PASS;
|
return PASS;
|
||||||
|
|
||||||
MovementManager movementManager = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId())
|
MovementManager movementManager = AntiCheatReloaded.getManager().getUserManager().getUser(player.getUniqueId())
|
||||||
@@ -50,7 +52,8 @@ public class StrafeCheck {
|
|||||||
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
||||||
|
|
||||||
if (System.currentTimeMillis() - movementManager.lastTeleport <= checksConfig.getInteger(CheckType.STRAFE,
|
if (System.currentTimeMillis() - movementManager.lastTeleport <= checksConfig.getInteger(CheckType.STRAFE,
|
||||||
"accountForTeleports") || movementManager.elytraEffectTicks >= 20)
|
"accountForTeleports") || movementManager.elytraEffectTicks >= 20
|
||||||
|
|| movementManager.halfMovementHistoryCounter >= 20)
|
||||||
return PASS;
|
return PASS;
|
||||||
|
|
||||||
Vector oldAcceleration = new Vector(movementManager.lastDistanceX, 0, movementManager.lastDistanceZ);
|
Vector oldAcceleration = new Vector(movementManager.lastDistanceX, 0, movementManager.lastDistanceZ);
|
||||||
@@ -58,9 +61,9 @@ public class StrafeCheck {
|
|||||||
|
|
||||||
float angle = newAcceleration.angle(oldAcceleration);
|
float angle = newAcceleration.angle(oldAcceleration);
|
||||||
double distance = newAcceleration.lengthSquared();
|
double distance = newAcceleration.lengthSquared();
|
||||||
if (angle > checksConfig
|
if (angle > checksConfig.getDouble(CheckType.STRAFE, "maxAngleChange")
|
||||||
.getDouble(CheckType.STRAFE, "maxAngleChange") && distance > checksConfig
|
&& distance > checksConfig.getDouble(CheckType.STRAFE, "minActivationDistance")
|
||||||
.getDouble(CheckType.STRAFE, "minActivationDistance") && Utilities.cantStandFar(to.getBlock()))
|
&& Utilities.cantStandFar(to.getBlock()))
|
||||||
return new CheckResult(Result.FAILED, "switched angle in air (angle=" + angle + ", dist=" + distance + ")");
|
return new CheckResult(Result.FAILED, "switched angle in air (angle=" + angle + ", dist=" + distance + ")");
|
||||||
return PASS;
|
return PASS;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class WaterWalkCheck {
|
|||||||
MovementManager movementManager = user.getMovementManager();
|
MovementManager movementManager = user.getMovementManager();
|
||||||
|
|
||||||
if (movementManager.distanceXZ <= 0 || player.getVehicle() != null || Utilities.isOnLilyPad(player)
|
if (movementManager.distanceXZ <= 0 || player.getVehicle() != null || Utilities.isOnLilyPad(player)
|
||||||
|| VersionUtil.isRiptiding(player) || VersionUtil.isSwimming(player))
|
|| VersionUtil.isRiptiding(player) || VersionUtil.isSwimming(player) || VersionUtil.isFlying(player))
|
||||||
return PASS;
|
return PASS;
|
||||||
|
|
||||||
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
Checks checksConfig = AntiCheatReloaded.getManager().getConfiguration().getChecks();
|
||||||
|
|||||||
@@ -46,10 +46,6 @@ public interface Magic {
|
|||||||
* Time to exempt a player from moving because of teleporting; Type=SYSTEM, Leniency=INCREASE.
|
* Time to exempt a player from moving because of teleporting; Type=SYSTEM, Leniency=INCREASE.
|
||||||
*/
|
*/
|
||||||
public int TELEPORT_TIME();
|
public int TELEPORT_TIME();
|
||||||
/**
|
|
||||||
* Time to exempt a player from moving because of exiting fly mode; Type=SYSTEM, Leniency=INCREASE.
|
|
||||||
*/
|
|
||||||
public int EXIT_FLY_TIME();
|
|
||||||
/**
|
/**
|
||||||
* Time to exempt a player from moving because of joining the server; Type=SYSTEM, Leniency=INCREASE.
|
* Time to exempt a player from moving because of joining the server; Type=SYSTEM, Leniency=INCREASE.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ import org.bukkit.event.player.PlayerMoveEvent;
|
|||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
import org.bukkit.event.player.PlayerRespawnEvent;
|
import org.bukkit.event.player.PlayerRespawnEvent;
|
||||||
import org.bukkit.event.player.PlayerTeleportEvent;
|
import org.bukkit.event.player.PlayerTeleportEvent;
|
||||||
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
|
||||||
import org.bukkit.event.player.PlayerToggleFlightEvent;
|
import org.bukkit.event.player.PlayerToggleFlightEvent;
|
||||||
import org.bukkit.event.player.PlayerToggleSneakEvent;
|
import org.bukkit.event.player.PlayerToggleSneakEvent;
|
||||||
import org.bukkit.event.player.PlayerToggleSprintEvent;
|
import org.bukkit.event.player.PlayerToggleSprintEvent;
|
||||||
|
|||||||
@@ -120,7 +120,8 @@ public final class Utilities {
|
|||||||
|
|
||||||
public static boolean isNotNearSlime(Block block) {
|
public static boolean isNotNearSlime(Block block) {
|
||||||
return !isSlime(block.getRelative(BlockFace.NORTH)) && !isSlime(block.getRelative(BlockFace.EAST))
|
return !isSlime(block.getRelative(BlockFace.NORTH)) && !isSlime(block.getRelative(BlockFace.EAST))
|
||||||
&& !isSlime(block.getRelative(BlockFace.SOUTH)) && !isSlime(block.getRelative(BlockFace.WEST)) && !isSlime(block.getRelative(BlockFace.DOWN));
|
&& !isSlime(block.getRelative(BlockFace.SOUTH)) && !isSlime(block.getRelative(BlockFace.WEST))
|
||||||
|
&& !isSlime(block.getRelative(BlockFace.DOWN));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean couldBeOnBoat(Player player) {
|
public static boolean couldBeOnBoat(Player player) {
|
||||||
@@ -148,11 +149,11 @@ public final class Utilities {
|
|||||||
*/
|
*/
|
||||||
public static boolean couldBeOnIce(Location location) {
|
public static boolean couldBeOnIce(Location location) {
|
||||||
return isNearIce(new Location(location.getWorld(), fixXAxis(location.getX()), location.getY() - 0.01D,
|
return isNearIce(new Location(location.getWorld(), fixXAxis(location.getX()), location.getY() - 0.01D,
|
||||||
location.getBlockZ())) || isNearIce(new Location(location.getWorld(), fixXAxis(location.getX()), location.getY() - 0.26D,
|
location.getBlockZ()))
|
||||||
|
|| isNearIce(new Location(location.getWorld(), fixXAxis(location.getX()), location.getY() - 0.26D,
|
||||||
location.getBlockZ()));
|
location.getBlockZ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether a block is a type of ice
|
* Determine whether a block is a type of ice
|
||||||
*
|
*
|
||||||
@@ -165,8 +166,7 @@ public final class Utilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isNearIce(Location location) {
|
public static boolean isNearIce(Location location) {
|
||||||
return isIce(location.getBlock())
|
return isIce(location.getBlock()) || isIce(location.getBlock().getRelative(BlockFace.NORTH))
|
||||||
|| isIce(location.getBlock().getRelative(BlockFace.NORTH))
|
|
||||||
|| isIce(location.getBlock().getRelative(BlockFace.SOUTH))
|
|| isIce(location.getBlock().getRelative(BlockFace.SOUTH))
|
||||||
|| isIce(location.getBlock().getRelative(BlockFace.EAST))
|
|| isIce(location.getBlock().getRelative(BlockFace.EAST))
|
||||||
|| isIce(location.getBlock().getRelative(BlockFace.WEST))
|
|| isIce(location.getBlock().getRelative(BlockFace.WEST))
|
||||||
@@ -190,8 +190,7 @@ public final class Utilities {
|
|||||||
public static boolean isNearShulkerBox(Location location) {
|
public static boolean isNearShulkerBox(Location location) {
|
||||||
if (VersionUtil.isBountifulUpdate())
|
if (VersionUtil.isBountifulUpdate())
|
||||||
return false;
|
return false;
|
||||||
return isShulkerBox(location.getBlock())
|
return isShulkerBox(location.getBlock()) || isShulkerBox(location.getBlock().getRelative(BlockFace.NORTH))
|
||||||
|| isShulkerBox(location.getBlock().getRelative(BlockFace.NORTH))
|
|
||||||
|| isShulkerBox(location.getBlock().getRelative(BlockFace.SOUTH))
|
|| isShulkerBox(location.getBlock().getRelative(BlockFace.SOUTH))
|
||||||
|| isShulkerBox(location.getBlock().getRelative(BlockFace.EAST))
|
|| isShulkerBox(location.getBlock().getRelative(BlockFace.EAST))
|
||||||
|| isShulkerBox(location.getBlock().getRelative(BlockFace.WEST))
|
|| isShulkerBox(location.getBlock().getRelative(BlockFace.WEST))
|
||||||
@@ -208,14 +207,14 @@ public final class Utilities {
|
|||||||
* @return true if the player could be standing on a halfblock
|
* @return true if the player could be standing on a halfblock
|
||||||
*/
|
*/
|
||||||
public static boolean couldBeOnHalfblock(Location location) {
|
public static boolean couldBeOnHalfblock(Location location) {
|
||||||
return isNearHalfblock(new Location(location.getWorld(), location.getX(), location.getY() - 0.01D,
|
return isNearHalfblock(
|
||||||
location.getBlockZ())) || isNearHalfblock(new Location(location.getWorld(), location.getX(), location.getY() - 0.51D,
|
new Location(location.getWorld(), location.getX(), location.getY() - 0.01D, location.getBlockZ()))
|
||||||
|
|| isNearHalfblock(new Location(location.getWorld(), location.getX(), location.getY() - 0.51D,
|
||||||
location.getBlockZ()));
|
location.getBlockZ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isNearHalfblock(Location location) {
|
public static boolean isNearHalfblock(Location location) {
|
||||||
return isHalfblock(location.getBlock())
|
return isHalfblock(location.getBlock()) || isHalfblock(location.getBlock().getRelative(BlockFace.NORTH))
|
||||||
|| isHalfblock(location.getBlock().getRelative(BlockFace.NORTH))
|
|
||||||
|| isHalfblock(location.getBlock().getRelative(BlockFace.SOUTH))
|
|| isHalfblock(location.getBlock().getRelative(BlockFace.SOUTH))
|
||||||
|| isHalfblock(location.getBlock().getRelative(BlockFace.EAST))
|
|| isHalfblock(location.getBlock().getRelative(BlockFace.EAST))
|
||||||
|| isHalfblock(location.getBlock().getRelative(BlockFace.WEST))
|
|| isHalfblock(location.getBlock().getRelative(BlockFace.WEST))
|
||||||
@@ -232,10 +231,10 @@ public final class Utilities {
|
|||||||
if (height > 0.42 && height <= 0.6 && block.getType().isSolid())
|
if (height > 0.42 && height <= 0.6 && block.getType().isSolid())
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return isSlab(block) || isStair(block) || isWall(block) || block.getType() == Material.SNOW;
|
return isSlab(block) || isStair(block) || isWall(block) || block.getType() == Material.SNOW
|
||||||
|
|| block.getType().name().endsWith("HEAD");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether a player could be standing on slime
|
* Determine whether a player could be standing on slime
|
||||||
*
|
*
|
||||||
@@ -244,11 +243,11 @@ public final class Utilities {
|
|||||||
*/
|
*/
|
||||||
public static boolean couldBeOnSlime(Location location) {
|
public static boolean couldBeOnSlime(Location location) {
|
||||||
return isNearSlime(new Location(location.getWorld(), fixXAxis(location.getX()), location.getY() - 0.01D,
|
return isNearSlime(new Location(location.getWorld(), fixXAxis(location.getX()), location.getY() - 0.01D,
|
||||||
location.getBlockZ())) || isNearSlime(new Location(location.getWorld(), fixXAxis(location.getX()), location.getY() - 0.51D,
|
location.getBlockZ()))
|
||||||
|
|| isNearSlime(new Location(location.getWorld(), fixXAxis(location.getX()), location.getY() - 0.51D,
|
||||||
location.getBlockZ()));
|
location.getBlockZ()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine whether a block is a type of slime
|
* Determine whether a block is a type of slime
|
||||||
*
|
*
|
||||||
@@ -261,8 +260,7 @@ public final class Utilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isNearSlime(Location location) {
|
public static boolean isNearSlime(Location location) {
|
||||||
return isSlime(location.getBlock())
|
return isSlime(location.getBlock()) || isSlime(location.getBlock().getRelative(BlockFace.NORTH))
|
||||||
|| isSlime(location.getBlock().getRelative(BlockFace.NORTH))
|
|
||||||
|| isSlime(location.getBlock().getRelative(BlockFace.SOUTH))
|
|| isSlime(location.getBlock().getRelative(BlockFace.SOUTH))
|
||||||
|| isSlime(location.getBlock().getRelative(BlockFace.EAST))
|
|| isSlime(location.getBlock().getRelative(BlockFace.EAST))
|
||||||
|| isSlime(location.getBlock().getRelative(BlockFace.WEST))
|
|| isSlime(location.getBlock().getRelative(BlockFace.WEST))
|
||||||
@@ -383,8 +381,7 @@ public final class Utilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isNearBed(Location location) {
|
public static boolean isNearBed(Location location) {
|
||||||
return isBed(location.getBlock())
|
return isBed(location.getBlock()) || isBed(location.getBlock().getRelative(BlockFace.NORTH))
|
||||||
|| isBed(location.getBlock().getRelative(BlockFace.NORTH))
|
|
||||||
|| isBed(location.getBlock().getRelative(BlockFace.SOUTH))
|
|| isBed(location.getBlock().getRelative(BlockFace.SOUTH))
|
||||||
|| isBed(location.getBlock().getRelative(BlockFace.EAST))
|
|| isBed(location.getBlock().getRelative(BlockFace.EAST))
|
||||||
|| isBed(location.getBlock().getRelative(BlockFace.WEST))
|
|| isBed(location.getBlock().getRelative(BlockFace.WEST))
|
||||||
@@ -498,8 +495,7 @@ public final class Utilities {
|
|||||||
*/
|
*/
|
||||||
public static boolean isSurroundedByWater(Player player) {
|
public static boolean isSurroundedByWater(Player player) {
|
||||||
Location location = player.getLocation().clone().subtract(0, 0.1, 0);
|
Location location = player.getLocation().clone().subtract(0, 0.1, 0);
|
||||||
return location.getBlock().isLiquid()
|
return location.getBlock().isLiquid() && location.getBlock().getRelative(BlockFace.NORTH).isLiquid()
|
||||||
&& location.getBlock().getRelative(BlockFace.NORTH).isLiquid()
|
|
||||||
&& location.getBlock().getRelative(BlockFace.SOUTH).isLiquid()
|
&& location.getBlock().getRelative(BlockFace.SOUTH).isLiquid()
|
||||||
&& location.getBlock().getRelative(BlockFace.EAST).isLiquid()
|
&& location.getBlock().getRelative(BlockFace.EAST).isLiquid()
|
||||||
&& location.getBlock().getRelative(BlockFace.WEST).isLiquid()
|
&& location.getBlock().getRelative(BlockFace.WEST).isLiquid()
|
||||||
@@ -730,6 +726,7 @@ public final class Utilities {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Rounds a float value to a scale
|
* Rounds a float value to a scale
|
||||||
|
*
|
||||||
* @param value Value to round
|
* @param value Value to round
|
||||||
* @param scale Scale
|
* @param scale Scale
|
||||||
* @return rounded value
|
* @return rounded value
|
||||||
@@ -740,6 +737,7 @@ public final class Utilities {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Rounds a double value to a scale
|
* Rounds a double value to a scale
|
||||||
|
*
|
||||||
* @param value Value to round
|
* @param value Value to round
|
||||||
* @param scale Scale
|
* @param scale Scale
|
||||||
* @return rounded value
|
* @return rounded value
|
||||||
@@ -749,9 +747,9 @@ public final class Utilities {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int floor(double value) {
|
public static int floor(double value) {
|
||||||
int rounded = (int) value;
|
int rounded = (int) value;
|
||||||
return value < rounded ? rounded - 1 : rounded;
|
return value < rounded ? rounded - 1 : rounded;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isHoneyBlock(Block block) {
|
public static boolean isHoneyBlock(Block block) {
|
||||||
if (!VersionUtil.isOfVersion("v1_15")) {
|
if (!VersionUtil.isOfVersion("v1_15")) {
|
||||||
@@ -893,7 +891,8 @@ public final class Utilities {
|
|||||||
INSTANT_BREAK.add(Material.TALL_SEAGRASS);
|
INSTANT_BREAK.add(Material.TALL_SEAGRASS);
|
||||||
INSTANT_BREAK.add(Material.WHEAT);
|
INSTANT_BREAK.add(Material.WHEAT);
|
||||||
// Start 1.14 objects
|
// Start 1.14 objects
|
||||||
if (VersionUtil.isOfVersion("v1_14") || VersionUtil.isOfVersion("v1_15") || VersionUtil.isOfVersion("v1_16")) {
|
if (VersionUtil.isOfVersion("v1_14") || VersionUtil.isOfVersion("v1_15")
|
||||||
|
|| VersionUtil.isOfVersion("v1_16")) {
|
||||||
INSTANT_BREAK.add(Material.BAMBOO_SAPLING);
|
INSTANT_BREAK.add(Material.BAMBOO_SAPLING);
|
||||||
INSTANT_BREAK.add(Material.CORNFLOWER);
|
INSTANT_BREAK.add(Material.CORNFLOWER);
|
||||||
}
|
}
|
||||||
@@ -944,7 +943,8 @@ public final class Utilities {
|
|||||||
FOOD.add(Material.SPIDER_EYE);
|
FOOD.add(Material.SPIDER_EYE);
|
||||||
FOOD.add(Material.TROPICAL_FISH);
|
FOOD.add(Material.TROPICAL_FISH);
|
||||||
// Start 1.14 objects
|
// Start 1.14 objects
|
||||||
if (VersionUtil.isOfVersion("v1_14") || VersionUtil.isOfVersion("v1_15") || VersionUtil.isOfVersion("v1_16")) {
|
if (VersionUtil.isOfVersion("v1_14") || VersionUtil.isOfVersion("v1_15")
|
||||||
|
|| VersionUtil.isOfVersion("v1_16")) {
|
||||||
FOOD.add(Material.SUSPICIOUS_STEW);
|
FOOD.add(Material.SUSPICIOUS_STEW);
|
||||||
FOOD.add(Material.SWEET_BERRIES);
|
FOOD.add(Material.SWEET_BERRIES);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ strafe:
|
|||||||
# How many milliseconds to account for teleports
|
# How many milliseconds to account for teleports
|
||||||
accountForTeleports: 100
|
accountForTeleports: 100
|
||||||
# Maximum angle change when moving in air
|
# Maximum angle change when moving in air
|
||||||
maxAngleChange: 0.25
|
maxAngleChange: 0.50
|
||||||
# Minimum movement distance for the strafe check to be active
|
# Minimum movement distance for the strafe check to be active
|
||||||
minActivationDistance: 0.025
|
minActivationDistance: 0.025
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
# Time to exempt a player from moving because of entering/exiting a vehicle
|
# Time to exempt a player from moving because of entering/exiting a vehicle
|
||||||
# Increase in case of false positives
|
# Increase in case of false positives
|
||||||
ENTERED_EXITED_TIME: 250
|
ENTERED_EXITED_TIME: 2500
|
||||||
# Time to exempt a player from moving because of teleporting
|
# Time to exempt a player from moving because of teleporting
|
||||||
# Increase in case of false positives
|
# Increase in case of false positives
|
||||||
TELEPORT_TIME: 1500
|
TELEPORT_TIME: 1500
|
||||||
# Time to exempt a player from moving because of exiting fly mode
|
|
||||||
# Changing this value is almost never required
|
|
||||||
EXIT_FLY_TIME: 2000
|
|
||||||
# Time to exempt a player from moving because of joining the server
|
# Time to exempt a player from moving because of joining the server
|
||||||
# If your server is slow when a player joins, increasing this value is important
|
# If your server is slow when a player joins, increasing this value is important
|
||||||
# Shouldn't be lower than 1500 or higher than 5000
|
# Shouldn't be lower than 1500 or higher than 5000
|
||||||
|
|||||||
Reference in new issue
Block a user