From ddaf0ddd65abb9b7aa0c747cf028865cf2bdd734 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Fri, 23 Oct 2020 17:55:44 +0200 Subject: [PATCH] Fix GroupPlayerJoinEvent player returning null; resolves #901 --- core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java b/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java index b8bddde9..95d76697 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java +++ b/core/src/main/java/de/erethon/dungeonsxl/player/DGroup.java @@ -216,7 +216,7 @@ public class DGroup implements PlayerGroup { @Override public void addMember(Player player, boolean message) { - GroupPlayerJoinEvent event = new GroupPlayerJoinEvent(this, dPlayers.getGamePlayer(player), false); + GroupPlayerJoinEvent event = new GroupPlayerJoinEvent(this, dPlayers.get(player), false); Bukkit.getPluginManager().callEvent(event); if (event.isCancelled()) { return;