BedrioxDOCUMENTATION
API INTERFACE

Server

Public interface in Bedriox\Api.

Bedriox\Api\Server
interfaceBedriox\Api

Public methods

getUptimeSeconds(): int

Returns the number of whole seconds since this server process began starting.

getPerformance(): Bedriox\Api\ServerPerformance

Returns a point-in-time health snapshot without exposing internal monitoring objects.

broadcastMessage(string|Bedriox\Api\TranslatableMessage $message): int

Typed public method.

getWorldManager(): Bedriox\Api\World\WorldManager

Typed public method.

getWhitelist(): Bedriox\Api\Whitelist\Whitelist

Typed public method.

getOnlinePlayers(): array

Typed public method.

getPlayerByUuid(string $uuid): ?Bedriox\Api\Player\Player

Typed public method.

getPlayerByName(string $name): ?Bedriox\Api\Player\Player

Typed public method.

View exact source ↗