mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
fix: Teleport Invulnerability oversight & incorrect values on Sponge (#671)
This commit is contained in:
1 parent
0eeab972e4
commit
afae073ab7
9 files changed
+41
-2
No files matched your search
@@ -370,6 +370,19 @@ public interface HuskHomes extends Task.Supplier, EventDispatcher, SafetyResolve
|
||||
return this.getCurrentlyOnWarmup().contains(userUuid);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
Set<UUID> getCurrentlyInvulnerable();
|
||||
|
||||
/**
|
||||
* Returns if the given user is currently invulnerable and if it should be removed.
|
||||
*
|
||||
* @param uuid the user to check.
|
||||
* @return if the user is currently invulnerable.
|
||||
*/
|
||||
default boolean isInvulnerable(@NotNull UUID uuid) {
|
||||
return this.getCurrentlyInvulnerable().contains(uuid);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
default UpdateChecker getUpdateChecker() {
|
||||
return UpdateChecker.builder()
|
||||
|
||||
Reference in new issue
Block a user