mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +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
@@ -98,6 +98,7 @@ public class BukkitHuskHomes extends JavaPlugin implements HuskHomes, BukkitTask
|
||||
private final Set<SavedUser> savedUsers = Sets.newHashSet();
|
||||
private final Map<String, List<String>> globalPlayerList = Maps.newConcurrentMap();
|
||||
private final Set<UUID> currentlyOnWarmup = Sets.newConcurrentHashSet();
|
||||
private final Set<UUID> currentlyInvulnerable = Sets.newConcurrentHashSet();
|
||||
|
||||
private Settings settings;
|
||||
private Locales locales;
|
||||
|
||||
@@ -154,4 +154,11 @@ public class BukkitUser extends OnlineUser {
|
||||
plugin.runSyncDelayed(() -> player.setInvulnerable(false), this, invulnerabilityTimeInTicks);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeInvulnerabilityIfPermitted() {
|
||||
if (plugin.isInvulnerable(this.getUuid())) {
|
||||
player.setInvulnerable(false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user