Package org.galliumpowered
Interface Server
public interface Server
-
Method Summary
Modifier and TypeMethodDescriptionint
Get online players as a numberint
Get the maximum number of players that can be on the serverGet all the online playersdefault void
sendMsgToAll
(net.kyori.adventure.text.Component component) Send a message to everyone online
-
Method Details
-
getCurrentPlayerCount
int getCurrentPlayerCount()Get online players as a number- Returns:
- number of
Player
s online
-
getMaxPlayerCount
int getMaxPlayerCount()Get the maximum number of players that can be on the server- Returns:
- number max
Player
s
-
getOnlinePlayers
Get all the online players- Returns:
- ArrayList of the players
-
sendMsgToAll
default void sendMsgToAll(net.kyori.adventure.text.Component component) Send a message to everyone online- Parameters:
component
- The message to send
-