mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-09-21 17:04:00 +00:00
When the role properties datastore is empty the plugin has not run before, so the roles the scenario used to define are created on the controller, along with the players the config listed. This replaces the role config which was loaded into every map. The seed keeps the parent relationships of the old config and flattens them into the permissions of each role, since clusterio roles do not inherit. The default and admin roles already exist, so those entries only set the in game properties; the default role gets its permissions through grantByDefault. Roles which already exist by name are reused and only gain the seed permissions, so seeding an existing cluster is safe. Permissions which are not defined are logged rather than refused, in case a plugin is not loaded. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>