mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix player cache not being updated on single-server mode, make #getNetworkMessenger @NotNull
This commit is contained in:
1 parent
a952a372cc
commit
90291196f9
9 files changed
+31
-30
No files matched your search
@@ -38,7 +38,7 @@ public class TpCommand extends CommandBase implements TabCompletable, ConsoleExe
|
||||
: onlineUser.username : onlineUser.username);
|
||||
|
||||
// Find the online user to teleport
|
||||
plugin.getCache().fetchAndCacheGlobalPlayerList(plugin, onlineUser).join();
|
||||
plugin.getCache().updatePlayerListCache(plugin, onlineUser).join();
|
||||
final String playerToTeleport = plugin.getCache().players.stream()
|
||||
.filter(user -> user.equalsIgnoreCase(targetPlayerToTeleport)).findFirst()
|
||||
.or(() -> plugin.getCache().players.stream()
|
||||
|
||||
Reference in new issue
Block a user