mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Moved server to shared in prep for plugins
This commit is contained in:
parent
d6c894c3d9
commit
d1906751e5
@ -9,7 +9,7 @@ from app.classes.shared.console import console
|
|||||||
|
|
||||||
from app.classes.shared.models import db_helper
|
from app.classes.shared.models import db_helper
|
||||||
|
|
||||||
from app.classes.minecraft.server import Server
|
from app.classes.shared.server import Server
|
||||||
from app.classes.minecraft.server_props import ServerProps
|
from app.classes.minecraft.server_props import ServerProps
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
@ -67,8 +67,8 @@ class Server:
|
|||||||
schedule.every(delay).seconds.do(self.run_scheduled_server)
|
schedule.every(delay).seconds.do(self.run_scheduled_server)
|
||||||
|
|
||||||
def run_scheduled_server(self):
|
def run_scheduled_server(self):
|
||||||
console.info("Starting Minecraft server ID: {} - {}".format(self.server_id, self.name))
|
console.info("Starting server ID: {} - {}".format(self.server_id, self.name))
|
||||||
logger.info("Starting Minecraft server {}".format(self.server_id, self.name))
|
logger.info("Starting server {}".format(self.server_id, self.name))
|
||||||
self.run_threaded_server()
|
self.run_threaded_server()
|
||||||
|
|
||||||
# remove the scheduled job since it's ran
|
# remove the scheduled job since it's ran
|
Loading…
Reference in New Issue
Block a user