Skip to content

Commit

Permalink
Only show release notes to GM.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcglincy committed Nov 15, 2021
1 parent 38c85fb commit ad15d31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/dungeondraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export class DungeonDraw {
}

static async maybeShowReleaseNotes() {
if (!game.user.isGM) {
// GMs only
return;
}
const moduleVersion = game.modules.get(DungeonDraw.MODULE_NAME).data.version;
const settingsVersion = game.settings.get(DungeonDraw.MODULE_NAME, "releaseNotesVersion");
if (moduleVersion === settingsVersion) {
Expand Down

0 comments on commit ad15d31

Please sign in to comment.