mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Remove server auto-fetching due to instability
This commit is contained in:
1 parent
d928ee6ade
commit
eb4652d6ff
17 files changed
+43
-161
No files matched your search
@@ -74,14 +74,14 @@ public class BukkitPlayer extends OnlineUser {
|
||||
public Position getPosition() {
|
||||
return new Position(BukkitAdapter.adaptLocation(player.getLocation())
|
||||
.orElseThrow(() -> new HuskHomesException("Failed to get the position of a BukkitPlayer (null)")),
|
||||
plugin.getPluginServer());
|
||||
plugin.getServerName());
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<Position> getBedSpawnPosition() {
|
||||
return Optional.ofNullable(player.getBedSpawnLocation()).flatMap(BukkitAdapter::adaptLocation)
|
||||
.map(location -> new Position(location, plugin.getPluginServer()));
|
||||
.map(location -> new Position(location, plugin.getServerName()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user