diff options
Diffstat (limited to 'src/main/scala/Server/Server.scala')
-rw-r--r-- | src/main/scala/Server/Server.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/scala/Server/Server.scala b/src/main/scala/Server/Server.scala index a03bc53..5eb15cb 100644 --- a/src/main/scala/Server/Server.scala +++ b/src/main/scala/Server/Server.scala @@ -82,13 +82,17 @@ class Server( assert(this.adventure.isDefined) c.gameStart() val name = c.getName + val entity: Option[Entity] = name match case Some(n) => this.adventure match case Some(a) => a.getPlayer(n) case None => None case None => None entity.foreach(c.giveEntity(_)) - this.writeToClient(s"$timeLimit\r\n", c) + + this.writeToClient( + s"$timeLimit\r\n${this.turnStartInfo(c)}", c + ) /** Helper function to determine if the next turn can be taken */ |