mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Add /tpignore
This commit is contained in:
1 parent
52a30c98ca
commit
a1667a4daf
6 files changed
+61
-10
No files matched your search
@@ -36,12 +36,12 @@ public class RequestManager {
|
||||
this.ignoringRequests = new HashSet<>();
|
||||
}
|
||||
|
||||
public void setIgnoringRequests(@NotNull User user) {
|
||||
this.ignoringRequests.add(user.uuid);
|
||||
}
|
||||
|
||||
public void removeIgnoringRequests(@NotNull User user) {
|
||||
this.ignoringRequests.remove(user.uuid);
|
||||
public void setIgnoringRequests(@NotNull User user, boolean ignoring) {
|
||||
if (ignoring) {
|
||||
this.ignoringRequests.add(user.uuid);
|
||||
} else {
|
||||
this.ignoringRequests.remove(user.uuid);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isIgnoringRequests(@NotNull User user) {
|
||||
|
||||
Reference in new issue
Block a user