Fixing #25
This commit is contained in:
parent
57f702f824
commit
fcab8f8a46
|
@ -121,15 +121,17 @@ public class AuthEventHandler {
|
|||
playerCache.lastAir = player.getAir();
|
||||
playerCache.wasOnFire = player.isOnFire();
|
||||
playerCache.wasInPortal = player.getBlockState().getBlock().equals(Blocks.NETHER_PORTAL);
|
||||
if(isAuthenticated(player)) {
|
||||
playerCache.lastDim = String.valueOf(player.getEntityWorld().getRegistryKey().getValue());
|
||||
playerCache.lastX = player.getX();
|
||||
playerCache.lastY = player.getY();
|
||||
playerCache.lastZ = player.getZ();
|
||||
|
||||
// Setting the session expire time
|
||||
if(isAuthenticated(player) && config.main.sessionTimeoutTime != -1)
|
||||
if(config.main.sessionTimeoutTime != -1)
|
||||
playerCache.validUntil = System.currentTimeMillis() + config.main.sessionTimeoutTime * 1000;
|
||||
}
|
||||
}
|
||||
|
||||
// Player chatting
|
||||
public static ActionResult onPlayerChat(PlayerEntity player, ChatMessageC2SPacket chatMessageC2SPacket) {
|
||||
|
|
Loading…
Reference in New Issue