mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-23 00:31:25 +01:00
Merge pull request #2948 from Multiverse/fix-null-teleporter
Fix teleporter reference being null
This commit is contained in:
commit
8865cfb53f
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user