You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This plugin will get data files with a GET call and store them with a PUT call
# Data files include plugin files which end with "{fileName}.data.yaml" and the openmod.roles.yaml and the opemod.users.yaml files.
#
# To get started, upload the webdatastore.php inside the plugins "webfiles" directory to your web server and replace the ENTER_TOKEN_HERE inside it and below with some random password.
# After that edit the urlTemplate below to make it point to your hosted file.
#
# If you are hosting your files directly as yaml without a php file you should use it like this
# {componentId}: the plugin or component which is reading or storing data (example values: OpenMod.Core, Kr4ken.NewEssentials)
# {fileName}: the file name, keep in mind that it is not unique and must be used with componentId when storing (example values: roles, users, etc.)
#
# An example sync file name would be {componentId}:{fileName} -> OpenMod.Core:users
#
urlTemplate: "https://example.com/webdatastore.php?file={componentId}.{fileName}?token=ENTER_TOKEN_HERE" # make sure token is same in webdatastore.php
syncedData:
- name: "OpenMod.Core:roles" # sync roles
- name: "OpenMod.Core:users" # sync user roles, data and permissions
# If you don't know what componentId or fileName to use, check your logs for "Loading data file locally: XXX:XXX" or "Saving data file locally: XXX:XXX" messages.