Tile - YGameSession - Restart The Game – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:


==== rejoinPlayers ====
==== rejoinPlayers ====
Whenever the players should be automatically reconnected to the game after restart
=== Availability ===
[[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Not in Edu|Not in Edu]]


=== Description ===
=== Description ===


This instruction will '''restart''' currently running '''game'''. In multiplayer, it will '''disconnect''' all '''players''' and restart the server.
'''Restarts''' currently running '''game'''. In multiplayer, it will '''disconnect''' all '''players''' and restart the server.


== Restart The Game(Players to rejoin) ==
== Restart The Game(Players to rejoin) ==
Line 23: Line 29:


==== playersToRejoin ====
==== playersToRejoin ====
List of players to rejoin the session
=== Availability ===
[[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Not in Edu|Not in Edu]]


=== Description ===
=== Description ===


This instruction will '''restart''' currently running '''game'''. In multiplayer, it will '''rejoin''' selected '''players'''.
Allows to '''restart''' currently running '''game''' and '''rejoin''' selected '''players'''.





Revision as of 12:15, 12 November 2021

Restart The Game(Rejoin all players)

YlandsTile-230.png

static restartGame(rejoinPlayers: boolean): void;

Parameters

rejoinPlayers

Whenever the players should be automatically reconnected to the game after restart

Availability

Server, Not in Edu

Description

Restarts currently running game. In multiplayer, it will disconnect all players and restart the server.

Restart The Game(Players to rejoin)

YlandsTile-589.png

static restartGame(playersToRejoin: YCharacter[]): void;

Parameters

playersToRejoin

List of players to rejoin the session

Availability

Server, Not in Edu

Description

Allows to restart currently running game and rejoin selected players.