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