Merge pull request #35 from TeamHRLive/development

Fix for /is members
This commit is contained in:
Christian Koop 2024-03-27 19:19:09 +01:00 committed by GitHub
commit a1f63b5336
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

@ -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) {

View File

@ -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",