Documentation ¶
Index ¶
Constants ¶
View Source
const ( Online = iota Offline Not_Found Err_Status Starting Err_Start Stopping Err_Stop Whitelist Success_Whitelist Err_Whitelist NumPlayers Err_NumPlayers SendingMessage Success_SendingMessage Err_SendingMessage )
View Source
const (
MinecraftersRoleName = "Minecrafters"
)
Variables ¶
View Source
var ( RequiredRoleNames = []string{ MinecraftersRoleName, } Message = []string{ ":green_circle: Pixelmon is ONLINE", ":red_circle: Pixelmon is OFFLINE", ":grey_exclamation: No Pixelmon server was found", ":exclamation: Error checking Pixelmon's status", ":green_square: Starting the Pixelmon server", ":exclamation: Failed to start the Pixelmon server", ":red_square: Stopping the Pixelmon server", ":exclamation: Failed to stop the Pixelmon server", ":green_square: Sending command to whitelist ", ":green_circle: Successfully sent command to whitelist ", ":exclamation: Error sending command to whitelist ", ":green_circle: Current Number of Players: ", ":exclamation: Error getting number of players", ":green_square: Sending command to say ", ":green_circle: Successfully sent command to say ", ":exclamation: Error sending command to say ", } )
Functions ¶
func AddToWhitelist ¶
AddToWhitelist takes a username and runs the /whitelist add command
func GetNumberOfPlayers ¶
GetNumberOfPlayers gets the number of online players on the Minecraft server
func SendMessage ¶
SendMessage takes a message and runs the /say command
func StartPixelmon ¶
func StartPixelmon() error
StartPixelmon turns on the Pixelmon Minecraft service
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.