mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-25 03:35:29 +01:00
commit
a1f63b5336
@ -114,7 +114,7 @@ public final class BlockScanner extends BukkitRunnable {
|
||||
if (ignoreY) {
|
||||
startY = world.getMaxHeight();
|
||||
} else {
|
||||
startY = !ignoreLiquidsY && liquidSection.getBoolean("Enable") && !config.getBoolean("Island.Levelling.ScanLiquid") ? liquidSection.getInt("Height") + 1 : 0;
|
||||
startY = !ignoreLiquidsY && liquidSection.getBoolean("Enable") && !config.getBoolean("Island.Levelling.ScanLiquid") ? liquidSection.getInt("Height") + 1 : world.getMinHeight();
|
||||
}
|
||||
|
||||
for (List<CachedChunk> sub : parts) {
|
||||
|
@ -398,12 +398,12 @@ public class Members {
|
||||
|
||||
int islandPlaytime;
|
||||
|
||||
org.bukkit.OfflinePlayer targetPlayer = Bukkit.getServer().getOfflinePlayer(playerUUID);
|
||||
Player targetPlayer = Bukkit.getServer().getPlayer(playerUUID);
|
||||
|
||||
if (targetPlayer == null) {
|
||||
OfflinePlayer offlinePlayer = new OfflinePlayer(playerUUID);
|
||||
playerName = offlinePlayer.getName();
|
||||
playerTexture = offlinePlayer.getTexture();
|
||||
//playerTexture = offlinePlayer.getTexture();
|
||||
islandPlaytime = offlinePlayer.getPlaytime();
|
||||
playTimeDurationTime = NumberUtil.getDuration(Integer.valueOf(islandPlaytime));
|
||||
|
||||
@ -419,8 +419,8 @@ public class Members {
|
||||
} else {
|
||||
playerName = targetPlayer.getName();
|
||||
|
||||
playerData = plugin.getPlayerDataManager().getPlayerData(targetPlayer.getUniqueId());
|
||||
playerTexture = playerData.getTexture();
|
||||
playerData = plugin.getPlayerDataManager().getPlayerData(targetPlayer);
|
||||
//playerTexture = playerData.getTexture();
|
||||
islandPlaytime = playerData.getPlaytime();
|
||||
playTimeDurationTime = NumberUtil.getDuration(islandPlaytime);
|
||||
|
||||
@ -571,7 +571,8 @@ public class Members {
|
||||
}
|
||||
}
|
||||
}
|
||||
ItemStack phead = SkullUtils.getSkull(targetPlayer.getUniqueId());
|
||||
|
||||
ItemStack phead = SkullUtils.getSkull(Bukkit.getPlayerUniqueId(playerName));
|
||||
nInv.addItem(
|
||||
nInv.createItem(phead,
|
||||
configLoad.getString("Menu.Members.Item.Member.Displayname").replace("%player",
|
||||
|
Loading…
Reference in New Issue
Block a user