diff --git a/CHANGELOG.md b/CHANGELOG.md index b827ffc..1dd4b59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +### 3.0.25 +##### Minecraft 1.20.5-1.20.6 + +1) Fix premium player being invulnerable after using `/logout` command + ### 3.0.24 ##### Minecraft 1.20.5-1.20.6 diff --git a/gradle.properties b/gradle.properties index 5010040..b8eca22 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ # Mod mod_name=EasyAuth mod_id=easyauth -mod_version=3.0.24 +mod_version=3.0.25 # Fabric minecraft_version=1.20.6 diff --git a/src/main/java/xyz/nikitacartes/easyauth/commands/LogoutCommand.java b/src/main/java/xyz/nikitacartes/easyauth/commands/LogoutCommand.java index 63e966d..f013586 100644 --- a/src/main/java/xyz/nikitacartes/easyauth/commands/LogoutCommand.java +++ b/src/main/java/xyz/nikitacartes/easyauth/commands/LogoutCommand.java @@ -23,7 +23,7 @@ public static void registerCommand(CommandDispatcher dispat private static int logout(ServerCommandSource serverCommandSource) throws CommandSyntaxException { ServerPlayerEntity player = serverCommandSource.getPlayerOrThrow(); - if (((PlayerAuth) player).easyAuth$isAuthenticated()) { + if (((PlayerAuth) player).easyAuth$isAuthenticated() && !((PlayerAuth) player).easyAuth$canSkipAuth()) { // player.getServer().getPlayerManager().sendToAll(new PlayerListS2CPacket(PlayerListS2CPacket.Action.REMOVE_PLAYER, player)); ((PlayerAuth) player).easyAuth$setAuthenticated(false); ((PlayerAuth) player).easyAuth$saveLastLocation(true);