mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 05:26:29 +01:00
Fix GroupPlayerJoinEvent player returning null; resolves #901
This commit is contained in:
parent
c198c15362
commit
ddaf0ddd65
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user