Add a setting to disable the auto tracking

This commit is contained in:
Oliver-Akins 2025-05-04 22:20:00 -06:00
parent 1a4d764a15
commit dff2455dc7
3 changed files with 22 additions and 1 deletions

18
module/settings/world.mjs Normal file
View file

@ -0,0 +1,18 @@
/*
World Settings:
- Track rolls automatically
- Track inactive rolls (e.g. the "lower" in a "kh" roll)
- Track self rolls (defaulta false)
*/
export function registerWorldSettings() {
game.settings.register(__ID__, `autoTrackRolls`, {
name: `Roll Auto-Tracking`,
hint: `Whether or not the module should automatically add rolls made in the chat to the database. This is useful if the system you're using has implemented an integration with the module, or if you only want macros to handle the database additions.`,
scope: `world`,
type: Boolean,
config: true,
default: true,
requiresReload: true,
});
};