Package net.zenoc.gallium.api
Interface Server
public interface Server
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Get online players as a numberGet all the online playershostname()
Get the server hostnamestatic int
Get the maximum number of players that can be on the serverstatic void
sendMsgToAll
(ChatMessage message) Send a message to everyone online
-
Method Details
-
hostname
String hostname()Get the server hostname- Returns:
- the hostname
-
currentPlayerCount
static int currentPlayerCount()Get online players as a number- Returns:
- number of
Player
s online
-
maxPlayerCount
static 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
Send a message to everyone online- Parameters:
message
- message to send
-