Skip to content

Commit 662c3e6

Browse files
fix: data wiping
Took 28 minutes
1 parent 486363e commit 662c3e6

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

type.generic/src/main/java/net/swofty/type/generic/command/commands/LobbyCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import net.swofty.type.generic.user.HypixelPlayer;
1010
import net.swofty.type.generic.user.categories.Rank;
1111

12-
@CommandParameters(aliases = "lbby",
12+
@CommandParameters(aliases = "l",
1313
description = "Takes the player to the lobby",
1414
usage = "/lobby",
1515
permission = Rank.DEFAULT,

type.skyblockgeneric/src/main/java/net/swofty/type/skyblockgeneric/event/actions/player/data/ActionPlayerSkyBlockDataLoad.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void run(AsyncPlayerConfigurationEvent event) {
2929
UUID islandUUID;
3030

3131
// Check if player has ever joined SkyBlock before
32-
SkyBlockPlayerProfiles profiles = player.getProfiles();
32+
SkyBlockPlayerProfiles profiles = new UserDatabase(playerUuid).getProfiles();
3333
UUID profileId;
3434

3535
if (profiles == null) {

velocity.extension/src/main/java/net/swofty/velocity/gamemanager/balanceconfigurations/IslandCheck.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public GameManager.GameServer getServer(Player player, List<GameManager.GameServ
2727
}
2828
UUID activeProfile = UUID.fromString(userDatabase.getString("selected"));
2929
Document document = new ProfilesDatabase(activeProfile.toString()).getDocument();
30-
if (document == null) {
30+
if (document == null || !document.containsKey("island_uuid") ||
31+
document.getString("island_uuid").equals("null")) {
3132
return null;
3233
}
3334
UUID islandUUID = UUID.fromString(document.getString("island_uuid").replace("\"", ""));

0 commit comments

Comments
 (0)