execute

open override fun execute(vararg args: String, context: Game?): CommandResult<Game>

Executes the join command.

Return

A CommandResult with the loaded game or an error message.

Parameters

args

The command arguments: [optionalPieceType]

context

The current game context (will be saved before joining new game).