team-gsri / mods-zeus-manager

A convenient Curator module manager with integrated whitelist
MIT License
1 stars 0 forks source link

Add import/export whitelist #4

Open ImplicitDeny opened 4 years ago

ImplicitDeny commented 4 years ago

Logged admin should be able to import a string-based whitelist during runtime, effectively allowing the server to grant Zeus access to players without having to register them one by one. This is useful for organizations using different servers AND different profiles (as the whitelist is stored as profile variable).

ImplicitDeny commented 4 years ago

Technical difficulties do not allow to publish this feature in v2020-05 of the modpack, and should therefore be moved to v2020-06

ArwynFr commented 2 years ago

Current situation is not being worked on. There is a limitation of how much data you can copy/paste in the chat. An alternative is to use the admin console, which requires the console being available.

Need to discuss technical solutions when able.

ImplicitDeny commented 2 years ago

This could be handled through a server-side CBA setting allowing a text value representing the desired hashMap. This will handle storage and serialization.

We could use CBA_settings_fnc_set to edit the value of the setting with script when an admin uses the CLI.

An admin can edit the setting directly, and the mod should use CBA events to detect when the setting has changed, in order to reload the new hashMap.

Last question on this matter : will the text input of CBA be able to store a (very) long string ? To be continued...