McServerLib

interface McServerLib : McLib

Properties

Link copied to clipboard
Link copied to clipboard
abstract override val commandManager: McCommandManager<McCommand>
Link copied to clipboard
abstract val configsFolder: File
Link copied to clipboard
Link copied to clipboard

Gets a collection of all players.

Link copied to clipboard
abstract val port: Int

Gets the bound port of the server.

Link copied to clipboard

Scheduler for executing tasks on the main thread.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val version: String

Gets the Minecraft version.

Link copied to clipboard

Gets a collection of all worlds.

Functions

Link copied to clipboard
open fun createLogger(name: String): McLogger
Link copied to clipboard
abstract fun executeInMainThread(runnable: Runnable)

Executes the task on the main thread.

Link copied to clipboard
abstract fun getEntityByInstance(instance: Any): McServerEntity

Creates a new McServerEntity instance of wrapped instance.

Link copied to clipboard
abstract fun getGameProfile(playerId: UUID): McGameProfile?

Gets a cached game profile by player unique identifier.

abstract fun getGameProfile(name: String): McGameProfile?

Gets a cached game profile by player name.

Link copied to clipboard
abstract fun getPlayerById(playerId: UUID): McServerPlayer?

Gets a player by their unique identifier.

Link copied to clipboard
abstract fun getPlayerByInstance(instance: Any): McServerPlayer

Gets a player by their server-specific instance.

Link copied to clipboard
abstract fun getPlayerByName(playerName: String): McServerPlayer?

Gets a player by their name.

Link copied to clipboard
abstract fun getWorld(instance: Any): McServerWorld

Gets a world by server-specific instance.

open fun getWorld(name: String): McServerWorld?

Gets a world by name.