mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-09-02 10:00:13 +02:00
/is visit and /is top playerdata fixes
This commit is contained in:
parent
aae24ab1a0
commit
344911bfca
|
@ -20,6 +20,9 @@ public class VisitCommand extends SubCommand {
|
|||
SoundManager soundManager = skyblock.getSoundManager();
|
||||
|
||||
if (args.length == 0) {
|
||||
if (!skyblock.getPlayerDataManager().hasPlayerData(player))
|
||||
skyblock.getPlayerDataManager().createPlayerData(player);
|
||||
|
||||
PlayerData playerData = skyblock.getPlayerDataManager().getPlayerData(player);
|
||||
playerData.setType(Visit.Type.Default);
|
||||
playerData.setSort(Visit.Sort.Default);
|
||||
|
|
|
@ -247,6 +247,10 @@ public class Leaderboard {
|
|||
playerTexture = offlinePlayer.getTexture();
|
||||
} else {
|
||||
playerName = targetPlayer.getName();
|
||||
|
||||
if (!playerDataManager.hasPlayerData(targetPlayer))
|
||||
playerDataManager.createPlayerData(targetPlayer);
|
||||
|
||||
playerTexture = playerDataManager.getPlayerData(targetPlayer).getTexture();
|
||||
}
|
||||
|
||||
|
|
|
@ -403,6 +403,10 @@ public class Visit {
|
|||
targetPlayerTexture = offlinePlayer.getTexture();
|
||||
} else {
|
||||
targetPlayerName = targetPlayer.getName();
|
||||
|
||||
if (!playerDataManager.hasPlayerData(targetPlayer))
|
||||
playerDataManager.createPlayerData(targetPlayer);
|
||||
|
||||
targetPlayerTexture = playerDataManager.getPlayerData(targetPlayer).getTexture();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user