diff --git a/app/classes/web/routes/api/servers/server/action.py b/app/classes/web/routes/api/servers/server/action.py index 153b889d..d23262f5 100644 --- a/app/classes/web/routes/api/servers/server/action.py +++ b/app/classes/web/routes/api/servers/server/action.py @@ -30,7 +30,11 @@ class ApiServersServerActionHandler(BaseApiHandler): return self.finish_json(400, {"status": "error", "error": "NOT_AUTHORIZED"}) if action == "clone_server": - return self._clone_server(server_id, auth_data[4]["user_id"]) + if self.controller.crafty_perms.can_create_server(auth_data[4]["user_id"]): + return self._clone_server(server_id, auth_data[4]["user_id"]) + return self.finish_json( + 200, {"status": "error", "error": "SERVER_LIMIT_REACHED"} + ) if action == "eula": return self._agree_eula(server_id, auth_data[4]["user_id"]) diff --git a/app/frontend/templates/panel/dashboard.html b/app/frontend/templates/panel/dashboard.html index 0d4fc0ac..7778300a 100644 --- a/app/frontend/templates/panel/dashboard.html +++ b/app/frontend/templates/panel/dashboard.html @@ -598,26 +598,27 @@