Moved server to shared in prep for plugins

This commit is contained in:
Phillip Tarrant 2020-08-31 13:53:46 -04:00
parent d6c894c3d9
commit d1906751e5
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ from app.classes.shared.console import console
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
logger = logging.getLogger(__name__)

View File

@ -67,8 +67,8 @@ class Server:
schedule.every(delay).seconds.do(self.run_scheduled_server)
def run_scheduled_server(self):
console.info("Starting Minecraft server ID: {} - {}".format(self.server_id, self.name))
logger.info("Starting Minecraft server {}".format(self.server_id, self.name))
console.info("Starting server ID: {} - {}".format(self.server_id, self.name))
logger.info("Starting server {}".format(self.server_id, self.name))
self.run_threaded_server()
# remove the scheduled job since it's ran