mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Prevent sending requests to vanished players
This commit is contained in:
1 parent
6397d78767
commit
2152ca91f2
4 files changed
+24
-2
No files matched your search
@@ -132,7 +132,7 @@ public class RequestManager {
|
||||
* @return {@code true} if the request was sent, {@code false} if it was not sent because the recipient is ignoring requests
|
||||
*/
|
||||
public boolean sendLocalTeleportRequest(@NotNull TeleportRequest request, @NotNull OnlineUser recipient) {
|
||||
if (isIgnoringRequests(recipient)) {
|
||||
if (isIgnoringRequests(recipient) || recipient.isVanished()) {
|
||||
request.status = TeleportRequest.RequestStatus.IGNORED;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user