diff --git a/app/classes/minecraft/stats.py b/app/classes/minecraft/stats.py index d309e023..f9c66d54 100644 --- a/app/classes/minecraft/stats.py +++ b/app/classes/minecraft/stats.py @@ -212,7 +212,7 @@ class Stats: return level_total_size - def get_server_players(self, server_id): + def get_server_players(self, server_id): # pylint: disable=no-self-use server = HelperServers.get_server_data_by_id(server_id) diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index 0db1871e..cdd5f796 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -241,7 +241,7 @@ class ServerInstance: ) which_java_raw = self.helper.which_java() java_path = which_java_raw + "\\bin\\java" - if not str(which_java_raw) == str(self.helper.get_servers_root_dir) or str( + if str(which_java_raw) != str(self.helper.get_servers_root_dir) or str( self.helper.get_servers_root_dir ) in str(which_java_raw): self.server_command[0] = java_path