From 150a719116d0fb0729acecec702c5dc6fadecd7b Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Thu, 8 Oct 2020 23:06:09 -0600 Subject: [PATCH] Emit the correct event --- src/events/KickPlayer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/KickPlayer.ts b/src/events/KickPlayer.ts index 0e4f6af..9a261bd 100644 --- a/src/events/KickPlayer.ts +++ b/src/events/KickPlayer.ts @@ -38,7 +38,7 @@ export const KickPlayer = (io: Server, socket: Socket, data: KickPlayer) => { // Ensure the user can be kicked during the state if (game.status !== `lobby`) { log.error(`Cannot kick a player from the game when not in the lobby. (state=${game.status})`); - socket.emit(`GameJoined`, { + socket.emit(`PlayerKicked`, { success: false, message: `Cannot kick a player when the game is in progress.`, });