diff --git a/commands/games-mp/chess.js b/commands/games-mp/chess.js index 90197702..d3a0fa7d 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -73,8 +73,8 @@ module.exports = class ChessCommand extends Command { game = new jsChess.Game(data.fen); whiteTime = data.whiteTime; blackTime = data.blackTime; - whitePlayer = data.playerColor === 'white' ? msg.author : opponent; - blackPlayer = data.playerColor === 'black' ? msg.author : opponent; + whitePlayer = data.color === 'white' ? msg.author : opponent; + blackPlayer = data.color === 'black' ? msg.author : opponent; await this.client.redis.del(`chess-${msg.author.id}`); } else { game = new jsChess.Game();