From 9a80620aa1e7b8a7d1f9332cdb7875f5e2ae5eb7 Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Sat, 19 Aug 2023 12:08:25 +0800 Subject: [PATCH] Fix teleporter reference being null --- .../onarandombox/MultiverseCore/listeners/MVPlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java b/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java index 2921f9c5..e025aa95 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java +++ b/src/main/java/com/onarandombox/MultiverseCore/listeners/MVPlayerListener.java @@ -170,7 +170,7 @@ public class MVPlayerListener implements Listener { return; } Player teleportee = event.getPlayer(); - CommandSender teleporter = null; + CommandSender teleporter = teleportee; String teleporterName = MultiverseCore.getPlayerTeleporter(teleportee.getName()); if (teleporterName != null) { if (teleporterName.equals("CONSOLE")) {