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

View File

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