Fix teleporter reference being null

This commit is contained in:
Ben Woo 2023-08-19 12:08:25 +08:00
parent 982eb28f2a
commit 9a80620aa1

View File

@ -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")) {