ModPlayer

open class ModPlayer(source)

Represents a player in the mod system with their associated data. This class manages player information including their Minecraft player instance, name, UUID, and team assignment.

Constructors

Link copied to clipboard
constructor(uuid: UUID, name: String, player: Player)
Constructs a new ModPlayers instance with the specified parameters.

Properties

Link copied to clipboard
open val name: String
Link copied to clipboard
open var player: Player
Link copied to clipboard
open var role: PlayerRole
Link copied to clipboard
open var team: Team
Link copied to clipboard
val uuid: UUID

Functions

Link copied to clipboard
open fun hasTeam(): Boolean
Link copied to clipboard
open fun toString(): String
Returns a string representation of the player, including the player's name, UUID, and associated team information, if applicable.