Disable crown config

This commit is contained in:
Hri7566 2024-11-04 21:19:56 -05:00
parent e520b1a23e
commit 4d623cae3f
2 changed files with 12 additions and 8 deletions

View File

@ -181,14 +181,16 @@ export class Channel extends EventEmitter {
} }
} }
// We are not a lobby, so we probably have a crown if (!config.disableCrown) {
// this.getFlag("no_crown"); // We are not a lobby, so we probably have a crown
this.crown = new Crown(); // this.getFlag("no_crown");
this.crown = new Crown();
// ...and, possibly, an owner, too // ...and, possibly, an owner, too
if (creator) { if (creator) {
const part = creator.getParticipant(); const part = creator.getParticipant();
if (part) this.giveCrown(part, true, false); if (part) this.giveCrown(part, true, false);
}
} }
} else { } else {
this.settings = config.lobbySettings; this.settings = config.lobbySettings;

View File

@ -12,6 +12,7 @@ interface ChannelConfig {
chownOnRejoin: boolean; chownOnRejoin: boolean;
channelDestroyTimeout: number; channelDestroyTimeout: number;
maxBanMinutes: number; maxBanMinutes: number;
disableCrown: boolean;
} }
export const config = ConfigManager.loadConfig<ChannelConfig>( export const config = ConfigManager.loadConfig<ChannelConfig>(
@ -46,6 +47,7 @@ export const config = ConfigManager.loadConfig<ChannelConfig>(
sendLimit: false, sendLimit: false,
chownOnRejoin: true, chownOnRejoin: true,
channelDestroyTimeout: 1000, channelDestroyTimeout: 1000,
maxBanMinutes: 60 maxBanMinutes: 60,
disableCrown: false
} }
); );