Added a game.user.isFirstGM property

This commit is contained in:
Vlyan
2022-07-18 18:19:47 +02:00
parent d74d91d8b8
commit cf937c4979
6 changed files with 17 additions and 6 deletions

View File

@@ -44,9 +44,9 @@ export class SocketHandlerL5r5e {
});
}
_onDeleteChatMessage(data) {
// Only delete the message if the user is a GM (otherwise it have no real effect)
// Only delete the message if the user is a GM (otherwise it has no real effect)
// Currently only used in RnK
if (!game.user.isGM || !game.settings.get("l5r5e", "rnk-deleteOldMessage")) {
if (!game.user.isFirstGM || !game.settings.get("l5r5e", "rnk-deleteOldMessage")) {
return;
}
const message = game.messages.get(data.messageId);