mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-31 03:41:24 +01:00
Fixed NullPointerException on teleport
This commit is contained in:
parent
3133fd0e96
commit
1d737370ee
@ -139,7 +139,7 @@ public class Teleport implements Listener {
|
||||
|
||||
Visit visit = island.getVisit();
|
||||
|
||||
if (!visit.isVisitor(player.getUniqueId())) {
|
||||
if (visit != null && !visit.isVisitor(player.getUniqueId())) {
|
||||
Bukkit.getServer().getPluginManager().callEvent(new PlayerIslandEnterEvent(player, island.getAPIWrapper()));
|
||||
|
||||
visit.addVisitor(player.getUniqueId());
|
||||
|
Loading…
Reference in New Issue
Block a user