Do player null check for scheduler

This commit is contained in:
libraryaddict 2020-05-22 22:49:22 +12:00
parent 2596813e45
commit cb433458f4
No known key found for this signature in database
GPG key ID: 052E4FBCD257AEA4
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
<!-- A good example on why temporary names for project identification shouldn't be used -->
<groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId>
<version>10.0.10</version>
<version>10.0.10-SNAPSHOT</version>
<build>
<defaultGoal>exec:java clean install</defaultGoal>

View file

@ -39,7 +39,7 @@ public class PacketListenerChannelRegister extends PacketAdapter {
public void run() {
Player player = event.getPlayer();
if (player.hasMetadata("ld_loggedin")) {
if (player == null || player.hasMetadata("ld_loggedin")) {
return;
}