diff --git a/piemc/commands/piemc.py b/piemc/commands/piemc.py index a287cb1..b616011 100644 --- a/piemc/commands/piemc.py +++ b/piemc/commands/piemc.py @@ -8,13 +8,14 @@ def ping(server): def stop(server): server.logger.info("Stopping the server...") server.stop() - + @ConsoleCMD def setmaxplayers(server, maxplayers): - server.max_players = maxplayers - server.update_server_status() + server.bedrock_server.max_players = maxplayers + server.bedrock_server.update_server_status() @ConsoleCMD def fakeonline(server, amount): - server.players_online = amount - server.update_server_status() + server.bedrock_server.players_online = amount + server.bedrock_server.update_server_status() +