mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-24 16:31:38 +01:00
Try to fix a npe in IslandManager
This commit is contained in:
parent
3fabd75aab
commit
00423eb5e4
@ -1222,7 +1222,9 @@ public class IslandManager {
|
||||
for (Player all : Bukkit.getOnlinePlayers()) {
|
||||
PlayerData targetPlayerData = plugin.getPlayerDataManager().getPlayerData(all);
|
||||
|
||||
if (targetPlayerData.getOwner() != null && targetPlayerData.getOwner().equals(island.getOwnerUUID())) {
|
||||
if (targetPlayerData != null &&
|
||||
targetPlayerData.getOwner() != null &&
|
||||
targetPlayerData.getOwner().equals(island.getOwnerUUID())) {
|
||||
Scoreboard scoreboard = scoreboardManager.getScoreboard(all);
|
||||
|
||||
if (islandMembers == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user