public interface NucleusInvulnerabilityService
Modifier and Type | Field and Description |
---|---|
static String |
INVULNERABLE_CONTEXT
The permission context key that indicates a player is invulnerable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isInvulnerable(org.spongepowered.api.entity.living.player.User user)
Returns whether a player is invulnerable as far as Nucleus is concerned.
|
void |
setInvulnerable(org.spongepowered.api.entity.living.player.User user,
boolean invulnerable)
Sets whether a player is invulnerable as far as Nucleus is concerned.
|
static final String INVULNERABLE_CONTEXT
The value of this context will always be true if set.
boolean isInvulnerable(org.spongepowered.api.entity.living.player.User user)
user
- The usertrue
if sovoid setInvulnerable(org.spongepowered.api.entity.living.player.User user, boolean invulnerable) throws NucleusException
user
- The userinvulnerable
- true
if soNucleusException
- thrown if the Nucleus user data file could not be opened/saved.