Merge pull request #2948 from Multiverse/fix-null-teleporter

Fix teleporter reference being null
This commit is contained in:
Jeremy Wood 2023-08-20 23:23:15 -04:00 committed by GitHub
commit 8865cfb53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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