We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca3bb98 commit 1a5108cCopy full SHA for 1a5108c
1 file changed
src/ps/commands/games/core.tsx
@@ -226,6 +226,7 @@ export const command: PSCommand[] = Object.entries(Games).map(([_gameId, Game]):
226
perms: Symbol.for('games.create'),
227
async run({ message, arg, $T }): Promise<void> {
228
const { game } = getGame(arg, { action: 'start', user: message.author.id }, { room: message.target, $T });
229
+ if (game.started) throw new ChatError($T('GAME.ALREADY_STARTED'));
230
if (!game.startable()) throw new ChatError($T('GAME.CANNOT_START'));
231
game.start();
232
game.closeSignups(false);
0 commit comments