Renamed command to SendCommand

This commit is contained in:
lieght
2025-09-17 16:02:02 +02:00
parent 4671885ad7
commit 620e98d29e
9 changed files with 131 additions and 6 deletions

View File

@@ -36,11 +36,11 @@ public class Main {
String ticTacToeGameId = ticTacToeGame.get();
GlobalEventBus.post(new Events.ServerEvents.RunTicTacToeGame(serverId, ticTacToeGameId));
GlobalEventBus.post(new Events.ServerEvents.Command(
GlobalEventBus.post(new Events.ServerEvents.SendCommand(
connectionId,
"gameid " + ticTacToeGameId, "player J", "MOVE", "0"
));
GlobalEventBus.post(new Events.ServerEvents.Command(
GlobalEventBus.post(new Events.ServerEvents.SendCommand(
connectionId,
"gameid " + ticTacToeGameId, "player P", "MOVE", "1"
));