mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-22 02:25:41 +01:00
Fix teleporter reference being null
This commit is contained in:
parent
982eb28f2a
commit
9a80620aa1
@ -170,7 +170,7 @@ public class MVPlayerListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Player teleportee = event.getPlayer();
|
Player teleportee = event.getPlayer();
|
||||||
CommandSender teleporter = null;
|
CommandSender teleporter = teleportee;
|
||||||
String teleporterName = MultiverseCore.getPlayerTeleporter(teleportee.getName());
|
String teleporterName = MultiverseCore.getPlayerTeleporter(teleportee.getName());
|
||||||
if (teleporterName != null) {
|
if (teleporterName != null) {
|
||||||
if (teleporterName.equals("CONSOLE")) {
|
if (teleporterName.equals("CONSOLE")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user