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
@@ -26,7 +26,7 @@ public class TpaAllCommand extends CommandBase {
|
||||
}
|
||||
|
||||
// Determine players to teleport and teleport them
|
||||
plugin.getCache().fetchAndCacheGlobalPlayerList(plugin, onlineUser).thenAccept(playerList -> {
|
||||
plugin.getCache().updatePlayerListCache(plugin, onlineUser).thenAccept(playerList -> {
|
||||
final List<String> players = plugin.getCache().players.stream()
|
||||
.filter(userName -> !userName.equalsIgnoreCase(onlineUser.username)).toList();
|
||||
if (players.isEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user