From 597358db06bc40226bf97d5459668b64e85ed53c Mon Sep 17 00:00:00 2001 From: hypherionmc Date: Sun, 14 Jul 2024 23:08:24 +0200 Subject: [PATCH] [BUG] Fix PlayerEvents ignoring `isFromVanish` --- .../craterlib/api/events/server/CraterPlayerEvent.java | 6 +++--- gradle.properties | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Common/src/main/java/com/hypherionmc/craterlib/api/events/server/CraterPlayerEvent.java b/Common/src/main/java/com/hypherionmc/craterlib/api/events/server/CraterPlayerEvent.java index a28db00..94be675 100644 --- a/Common/src/main/java/com/hypherionmc/craterlib/api/events/server/CraterPlayerEvent.java +++ b/Common/src/main/java/com/hypherionmc/craterlib/api/events/server/CraterPlayerEvent.java @@ -22,12 +22,12 @@ public class CraterPlayerEvent extends CraterEvent { public PlayerLoggedIn(BridgedPlayer player, boolean isFromVanish) { super(player); - this.isFromVanish = false; + this.isFromVanish = isFromVanish; } } - @Getter @Setter + @Getter public static class PlayerLoggedOut extends CraterPlayerEvent { private final boolean isFromVanish; @@ -37,7 +37,7 @@ public class CraterPlayerEvent extends CraterEvent { public PlayerLoggedOut(BridgedPlayer player, boolean isFromVanish) { super(player); - this.isFromVanish = false; + this.isFromVanish = isFromVanish; } } diff --git a/gradle.properties b/gradle.properties index d8422af..8ebc76c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ #Project version_major=2 version_minor=0 -version_patch=1 +version_patch=2 version_build=1 #Mod