[Request] Ability to add custom text to the API's log methods.
N0RSKA opened this issue ยท 1 comments
I recently added support for CoreProtect to my sellwands plugin, it logs container transactions just fine but I believe it'd be better if they could be distinguished.
Example: "removed x64 diamond" could be "removed x64 diamond (Sellwand)" if you could add custom identifiers when using the API.
In looking into creating support for Movecraft logging, I found it disappointing that CoreProtect's API does not allow custom types of logs. Currently, I have to choose between logging everything as placement/removal or interactions.
I'd love it if we could create our own types of logs (ex: "piloted", "released") for both inspection records and the lookup command. My initial thought is to create a base LogType
which defines the various strings, functions etc that a type of log needs to have, and allow plugins to register their own custom classes which implement LogType
upon startup. The lookup command and the API logging functions could be greatly simplified by passing the log type.