-
-
Notifications
You must be signed in to change notification settings - Fork 499
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
We know you can protect your resources by active protected flag in mtaserver.conf
so admins/mods cannot stop/restart it via stop/restart command,
but you can with stopResource,restartResource functions
so admins/mods can stop it by resources like admin panel or other moderation resources
To reproduce
- open admin panel
- stop/restart a protected resource
Expected behaviour
stopResource,restartResource
mustn't stop/restart the resource because is protected
Version
MTA:SA Server v1.5.7-release-18957
Additional context
I have two ideas to solve the problem
- if the resource is protected stopResource,restartResource functions should return false
or 2. AddisResourceProtectedfunction to prevent moderation resources from stop/restart protected resources
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request