Package org.galliumpowered
Interface Server
public interface Server
-
Method Summary
Modifier and TypeMethodDescriptionintGet online players as a numberintGet the maximum number of players that can be on the serverGet all the online playersdefault voidsendMsgToAll(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
Players online
-
getMaxPlayerCount
int getMaxPlayerCount()Get the maximum number of players that can be on the server- Returns:
- number max
Players
-
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
-