Add preventSetting hook call for the chatImageLinks setting
This commit is contained in:
parent
9c3213ebac
commit
344e9c55ab
1 changed files with 6 additions and 0 deletions
|
|
@ -14,6 +14,12 @@ const IMAGE_TYPES = [
|
|||
|
||||
export function chatImageLinks() {
|
||||
|
||||
const prevented = Hooks.call(`${__ID__}.preventSetting`, key);
|
||||
if (!prevented) {
|
||||
Logger.log(`Preventing setting "${key}" from being registered`);
|
||||
return false;
|
||||
};
|
||||
|
||||
// #region Registration
|
||||
Logger.log(`Registering setting: ${key}`);
|
||||
game.settings.register(__ID__, key, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue