Add initial support for fetching egg configuration from panel for servers

This commit is contained in:
Dane Everitt
2019-09-22 20:47:38 -07:00
parent 2a745c5da1
commit d7753d9c7f
7 changed files with 308 additions and 8 deletions

View File

@@ -14,6 +14,10 @@ type Environment interface {
// for this specific server instance.
IsRunning() (bool, error)
// Runs before the environment is started. If an error is returned starting will
// not occur, otherwise proceeds as normal.
OnBeforeStart() error
// Starts a server instance. If the server instance is not in a state where it
// can be started an error should be returned.
Start() error