mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-28 12:07:38 +01:00
We don't need move events if afk interact is disabled.
This commit is contained in:
parent
2f567812d2
commit
eea0c9682c
@ -468,8 +468,8 @@ public class Settings implements ISettings
|
|||||||
teleportInvulnerability = _isTeleportInvulnerability();
|
teleportInvulnerability = _isTeleportInvulnerability();
|
||||||
disableItemPickupWhileAfk = _getDisableItemPickupWhileAfk();
|
disableItemPickupWhileAfk = _getDisableItemPickupWhileAfk();
|
||||||
registerBackInListener = _registerBackInListener();
|
registerBackInListener = _registerBackInListener();
|
||||||
cancelAfkOnMove = _cancelAfkOnMove();
|
|
||||||
cancelAfkOnInteract = _cancelAfkOnInteract();
|
cancelAfkOnInteract = _cancelAfkOnInteract();
|
||||||
|
cancelAfkOnMove = _cancelAfkOnMove() && cancelAfkOnInteract;
|
||||||
getFreezeAfkPlayers = _getFreezeAfkPlayers();
|
getFreezeAfkPlayers = _getFreezeAfkPlayers();
|
||||||
itemSpawnBl = _getItemSpawnBlacklist();
|
itemSpawnBl = _getItemSpawnBlacklist();
|
||||||
loginAttackDelay = _getLoginAttackDelay();
|
loginAttackDelay = _getLoginAttackDelay();
|
||||||
@ -832,7 +832,6 @@ public class Settings implements ISettings
|
|||||||
{
|
{
|
||||||
return config.getBoolean("cancel-afk-on-move", true);
|
return config.getBoolean("cancel-afk-on-move", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean cancelAfkOnInteract;
|
private boolean cancelAfkOnInteract;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -870,7 +869,7 @@ public class Settings implements ISettings
|
|||||||
{
|
{
|
||||||
return config.getBoolean("repair-enchanted", true);
|
return config.getBoolean("repair-enchanted", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean allowUnsafeEnchantments()
|
public boolean allowUnsafeEnchantments()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user