Package org.galliumpowered
Interface Server
public interface Server
-
Method Summary
Modifier and TypeMethodDescriptionint
Get online players as a numberGet all the online playersint
Get the maximum number of players that can be on the serverdefault void
sendMsgToAll
(net.kyori.adventure.text.Component component) Send a message to everyone online
-
Method Details
-
currentPlayerCount
int currentPlayerCount()Get online players as a number- Returns:
- number of
Player
s online
-
maxPlayerCount
int maxPlayerCount()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
-