Server Interface
Introduction#
The Server interface provides methods to access server-related information and functionality.
Methods#
uuid#
java
UUID uuid();Description:
Gets the unique identifier of the server.
Returns:
The server's UUID.
monitor#
java
Monitor monitor();Description:
Gets the server monitor, which provides access to various performance statistics.
Returns:
The Monitor instance.
cloudConnected#
java
boolean cloudConnected();Description:
Determines if the server is connected to the Polar cloud.
Returns:
true if the server is connected to the cloud, false otherwise.
reloadConfig#
java
void reloadConfig();Description:
Reloads the Polar configuration. Identical to /polar reload. Fires a ReloadEvent.
Returns:
Nothing.