Group

interface Group

Represents a group within Housing.

Implementations perform sequential behavior and therefore expose suspend functions for better interaction with Housing.

Inheritors

Types

Link copied to clipboard

Chat speeds used for chat throttling permissions.

Link copied to clipboard

Default game modes that can be applied to players in the group.

Link copied to clipboard

Possible display colors for a group.

Link copied to clipboard
sealed class PermissionKey<T>

A key representing a typed permission entry.

Link copied to clipboard

Available permissions.

Link copied to clipboard

Mutable container for permission values keyed by PermissionKey.

Properties

Link copied to clipboard
abstract var name: String

The unique name of this group.

Functions

Link copied to clipboard
abstract suspend fun clearGroupPlayers(): Group

Removes all players from this group.

Link copied to clipboard
abstract suspend fun delete()

Deletes this group.

Link copied to clipboard
abstract suspend fun getColor(): Group.GroupColor

Returns the group's display color.

Link copied to clipboard
open suspend fun getName(): String

Returns the current name of this group.

Link copied to clipboard
abstract suspend fun getPermissions(): Group.PermissionSet

Returns the group's permissions as a PermissionSet.

Link copied to clipboard
abstract suspend fun getPriority(): Int

Returns the group's priority. Higher values indicate higher priority.

Link copied to clipboard
abstract suspend fun getTag(): String?

Gets the group's current tag.

Link copied to clipboard
abstract suspend fun getTagVisibleInChat(): Boolean

Returns whether the group's tag is visible in chat.

Link copied to clipboard
abstract suspend fun setColor(newColor: Group.GroupColor): Group

Sets the group's display color.

Link copied to clipboard
abstract suspend fun setName(newName: String): Group

Sets the name of this group.

Link copied to clipboard
abstract suspend fun setPermissions(newPermissions: Group.PermissionSet): Group

Replaces the group's permissions with the provided set.

Link copied to clipboard
abstract suspend fun setPriority(newPriority: Int): Group

Sets the group's priority.

Link copied to clipboard
abstract suspend fun setTag(newTag: String): Group

Sets the group's chat tag.

Link copied to clipboard
abstract suspend fun setTagVisibleInChat(newVisibleInChat: Boolean): Group

Sets visibility of the group's tag in chat.