mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
More refactor work, encapsulate classes
This commit is contained in:
1 parent
3e1ec09487
commit
1cebdac9b8
51 files changed
+756
-621
No files matched your search
@@ -33,7 +33,7 @@ public class TpaAllCommand extends CommandBase {
|
||||
|
||||
// Determine players to teleport and teleport them
|
||||
plugin.getCache().updatePlayerListCache(plugin, onlineUser).thenAccept(playerList -> {
|
||||
final List<String> players = plugin.getCache().players.stream()
|
||||
final List<String> players = plugin.getCache().getPlayers().stream()
|
||||
.filter(userName -> !userName.equalsIgnoreCase(onlineUser.username)).toList();
|
||||
if (players.isEmpty()) {
|
||||
plugin.getLocales().getLocale("error_no_players_online").ifPresent(onlineUser::sendMessage);
|
||||
|
||||
Reference in new issue
Block a user