Skip to content

Commit

Permalink
Fix unknown players on join (#1058)
Browse files Browse the repository at this point in the history
Signed-off-by: Pablete1234 <[email protected]>
  • Loading branch information
Pablete1234 authored Sep 23, 2022
1 parent b4a01bf commit 1133839
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/main/java/tc/oc/pgm/listeners/PGMListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public void onPlayerLogin(final PlayerLoginEvent event) {

@EventHandler(priority = EventPriority.LOW)
public void addPlayerOnJoin(final PlayerJoinEvent event) {
// Player already left. Because quit already happened, we must ignore the join.
if (!event.getPlayer().isOnline()) return;

Match match = this.mm.getMatch(event.getPlayer().getWorld());
if (match == null) {
event
Expand Down

0 comments on commit 1133839

Please sign in to comment.