mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Refactoring, improve database system and add creation timestamp to homes and warps
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user