mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Make ignored/vanish teleport requests display like the user is offline
This commit is contained in:
2 files changed
+14
-3
No files matched your search
@@ -126,7 +126,7 @@ public class TpCommand extends Command implements TabProvider {
|
||||
((int) basePosition.getX() + " " + (int) basePosition.getY()),
|
||||
((int) basePosition.getX() + " " + (int) basePosition.getY() + " " + (int) basePosition.getZ()))
|
||||
: List.of());
|
||||
completions.addAll(plugin.getPlayerList());
|
||||
completions.addAll(plugin.getPlayerList(false));
|
||||
return completions.stream()
|
||||
.filter(s -> s.toLowerCase().startsWith(args.length == 1 ? args[0].toLowerCase() : ""))
|
||||
.sorted().collect(Collectors.toList());
|
||||
@@ -143,7 +143,7 @@ public class TpCommand extends Command implements TabProvider {
|
||||
((int) basePosition.getX() + " " + (int) basePosition.getY()),
|
||||
((int) basePosition.getX() + " " + (int) basePosition.getY() + " " + (int) basePosition.getZ()))
|
||||
: List.of());
|
||||
completions.addAll(plugin.getPlayerList());
|
||||
completions.addAll(plugin.getPlayerList(false));
|
||||
}
|
||||
return completions.stream()
|
||||
.filter(s -> s.toLowerCase().startsWith(args[1].toLowerCase()))
|
||||
|
||||
Reference in new issue
Block a user