ENH: Admin defined "contraband" detection and removal #1563
Labels
enhancement
New feature or request
P-Fixer
This issue is confirmed, but is not prioritized to be fixed.
Is your feature request related to a problem?
In short, provide a means for server admins to define what items the server should consider "contraband" and prevent non GM accounts ( GM level of 0) from using said items.
Describe the solution you'd like
Brief
A new config will be added that includes a list of item IDs. Whenever a non-GM account (level 0) logs into the game, the system will search both the character’s personal inventory and vault for these flagged items. If found, the account will be flagged, and the items will be addressed accordingly.
Config Layout
The config will be structured as a JSON file, as shown below. The name field acts primarily as a reference for users reviewing the list, rather than having a functional role within the code. This setup enables users to quickly identify what each ID represents, enhancing clarity and usability.
I prefer to avoid using the .ini format, as employed in the other configs, at it does not support inline comments. Inline comments are, imo, crucial for clarity when managing a large list of IDs.
Details
If a character is found to be in possession of one of the items, the following should happen.
Expanding on point #2
It would be beneficial to include an option in the config that allows an admin to choose between automatically removing the item or simply preventing its use. Alternatively, defaulting to blocking the use of the item may be safer in cases where an item might have been erroneously listed.
Repository breaking implications
Addition of a new config and column in the database
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: