Disable crown config
This commit is contained in:
parent
e520b1a23e
commit
4d623cae3f
|
@ -181,6 +181,7 @@ export class Channel extends EventEmitter {
|
|||
}
|
||||
}
|
||||
|
||||
if (!config.disableCrown) {
|
||||
// We are not a lobby, so we probably have a crown
|
||||
// this.getFlag("no_crown");
|
||||
this.crown = new Crown();
|
||||
|
@ -190,6 +191,7 @@ export class Channel extends EventEmitter {
|
|||
const part = creator.getParticipant();
|
||||
if (part) this.giveCrown(part, true, false);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.settings = config.lobbySettings;
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ interface ChannelConfig {
|
|||
chownOnRejoin: boolean;
|
||||
channelDestroyTimeout: number;
|
||||
maxBanMinutes: number;
|
||||
disableCrown: boolean;
|
||||
}
|
||||
|
||||
export const config = ConfigManager.loadConfig<ChannelConfig>(
|
||||
|
@ -46,6 +47,7 @@ export const config = ConfigManager.loadConfig<ChannelConfig>(
|
|||
sendLimit: false,
|
||||
chownOnRejoin: true,
|
||||
channelDestroyTimeout: 1000,
|
||||
maxBanMinutes: 60
|
||||
maxBanMinutes: 60,
|
||||
disableCrown: false
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue