public interface NucleusFreezePlayerService
Requires the freeze-player module.
Modifier and Type | Method and Description |
---|---|
default boolean |
isFrozen(org.spongepowered.api.entity.living.player.User player)
Gets whether a player is frozen.
|
boolean |
isFrozen(java.util.UUID uuid)
Gets whether a player is frozen.
|
default void |
setFrozen(org.spongepowered.api.entity.living.player.User player,
boolean freeze)
Sets whether a player is frozen.
|
void |
setFrozen(java.util.UUID uuid,
boolean freeze)
Sets whether a player is frozen.
|
boolean isFrozen(java.util.UUID uuid)
uuid
- The UUID
of the player.default boolean isFrozen(org.spongepowered.api.entity.living.player.User player)
player
- The player.void setFrozen(java.util.UUID uuid, boolean freeze)
uuid
- The UUID
of the playerfreeze
- Whether to freeze themdefault void setFrozen(org.spongepowered.api.entity.living.player.User player, boolean freeze)
player
- The playerfreeze
- Whether to freeze them