mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 09:10:01 +01:00
Fix #705
Idk why the player becomes null, maybe the isOnline check is enought
This commit is contained in:
parent
c748501345
commit
9e688b410d
@ -444,7 +444,10 @@ public class AuthMePlayerListener implements Listener {
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
player.closeInventory();
|
||||
// Fix NPE, idk how this is possible -sgdc3
|
||||
if(player != null && player.isOnline()) {
|
||||
player.closeInventory();
|
||||
}
|
||||
}
|
||||
}, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user