Fix GroupPlayerJoinEvent player returning null; resolves #901

This commit is contained in:
Daniel Saukel 2020-10-23 17:55:44 +02:00
parent c198c15362
commit ddaf0ddd65

View File

@ -216,7 +216,7 @@ public class DGroup implements PlayerGroup {
@Override @Override
public void addMember(Player player, boolean message) { 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); Bukkit.getPluginManager().callEvent(event);
if (event.isCancelled()) { if (event.isCancelled()) {
return; return;