mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Adjust connection getting during teleport to fix expired connection error
This commit is contained in:
1 parent
4e2488399d
commit
9943d2c9d5
11 files changed
+145
-166
No files matched your search
@@ -38,7 +38,7 @@ public class HomeCommand extends CommandBase {
|
||||
PublicHomeCommand.queueHomeTeleport(p, homeArgument);
|
||||
} else if (DataManager.homeExists(p, homeArgument, connection)) {
|
||||
Home home = DataManager.getHome(p.getName(), homeArgument, connection);
|
||||
TeleportManager.queueTimedTeleport(p, home, connection);
|
||||
TeleportManager.queueTimedTeleport(p, home);
|
||||
} else {
|
||||
MessageManager.sendMessage(p, "error_home_invalid", homeArgument);
|
||||
}
|
||||
@@ -46,7 +46,7 @@ public class HomeCommand extends CommandBase {
|
||||
List<Home> homes = DataManager.getPlayerHomes(p.getName(), connection);
|
||||
if (homes.size() == 1) {
|
||||
// Teleport the player if they only have one home
|
||||
TeleportManager.queueTimedTeleport(p, homes.get(0), connection);
|
||||
TeleportManager.queueTimedTeleport(p, homes.get(0));
|
||||
return;
|
||||
}
|
||||
HomeListCommand.displayPlayerHomeList(p, p.getName(), 1);
|
||||
|
||||
Reference in new issue
Block a user