Skip to main content
Module

x/replcraft/mod.ts>Player

A library to control special structures on the ReplCraft Minecraft server
Latest
class Player
import { Player } from "https://deno.land/x/replcraft@v1.1.0/mod.ts";

Constructors

new
Player(unnamed 0: PlayerOptions)

Properties

readonly
name: string | null

Name of the player

readonly
uuid: string | null

UUID of the player

Methods

equals(player: Player): boolean

Check whether two players are the same.

Get the player's UUID or name, with the UUID taking priority.

Static Methods

from(name: string, uuid?: string): Player

Create a new player using a name and optionally, a UUID.