mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Fixed Skyblock reading a configuration node that doesn't exist
This commit is contained in:
parent
0a9018c093
commit
ec0b18fdbb
@ -158,7 +158,7 @@ public class PlayerDataManager {
|
|||||||
&& fileManager.getConfig(new File(skyblock.getDataFolder(), "config.yml"))
|
&& fileManager.getConfig(new File(skyblock.getDataFolder(), "config.yml"))
|
||||||
.getFileConfiguration().getBoolean("Island.Visitor.Banning")
|
.getFileConfiguration().getBoolean("Island.Visitor.Banning")
|
||||||
&& banManager.getIsland(island.getOwnerUUID()).isBanned(player.getUniqueId())) {
|
&& banManager.getIsland(island.getOwnerUUID()).isBanned(player.getUniqueId())) {
|
||||||
messageManager.sendMessage(player, configLoad.getString("Island.Visit.Teleport.Island.Message")
|
messageManager.sendMessage(player, configLoad.getString("Island.Visit.Banned.Island.Message")
|
||||||
.replace("%player", targetPlayerName));
|
.replace("%player", targetPlayerName));
|
||||||
} else {
|
} else {
|
||||||
if (island.hasRole(IslandRole.Member, player.getUniqueId())
|
if (island.hasRole(IslandRole.Member, player.getUniqueId())
|
||||||
@ -273,7 +273,7 @@ public class PlayerDataManager {
|
|||||||
.getFileConfiguration().getBoolean("Island.Visitor.Banning")
|
.getFileConfiguration().getBoolean("Island.Visitor.Banning")
|
||||||
&& banManager.getIsland(visitIslandList).isBanned(player.getUniqueId())) {
|
&& banManager.getIsland(visitIslandList).isBanned(player.getUniqueId())) {
|
||||||
messageManager.sendMessage(player,
|
messageManager.sendMessage(player,
|
||||||
configLoad.getString("Island.Visit.Teleport.Island.Message").replace("%player",
|
configLoad.getString("Island.Visit.Banned.Island.Message").replace("%player",
|
||||||
targetPlayerName));
|
targetPlayerName));
|
||||||
} else {
|
} else {
|
||||||
org.bukkit.OfflinePlayer offlinePlayer = Bukkit.getServer()
|
org.bukkit.OfflinePlayer offlinePlayer = Bukkit.getServer()
|
||||||
|
Loading…
Reference in New Issue
Block a user