Refactoring, improve database system and add creation timestamp to homes and warps

This commit is contained in:
William committed 2021-08-10 13:43:11 +01:00
1 parent 58eeab20c5
commit 98893814f7
24 files changed
+549 -657

No files matched your search

@@ -41,12 +41,10 @@ public class HomeCommand extends CommandBase {
}
} else {
List<Home> homes = DataManager.getPlayerHomes(p.getName(), connection);
if (homes != null) {
if (homes.size() == 1) {
// Teleport the player if they only have one home
TeleportManager.queueTimedTeleport(p, homes.get(0), connection);
return;
}
if (homes.size() == 1) {
// Teleport the player if they only have one home
TeleportManager.queueTimedTeleport(p, homes.get(0), connection);
return;
}
HomeListCommand.displayPlayerHomeList(p, 1);
}