Tile - YGameSession - Restart The Game – Ylands
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 === | ||
'''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 === | ||
Allows to '''restart''' currently running '''game''' and '''rejoin''' selected '''players'''. | |||
Revision as of 12:15, 12 November 2021
Restart The Game(Rejoin all players)
static restartGame(rejoinPlayers: boolean): void;
Parameters
rejoinPlayers
Whenever the players should be automatically reconnected to the game after restart
Availability
Description
Restarts currently running game. In multiplayer, it will disconnect all players and restart the server.
Restart The Game(Players to rejoin)
static restartGame(playersToRejoin: YCharacter[]): void;
Parameters
playersToRejoin
List of players to rejoin the session
Availability
Description
Allows to restart currently running game and rejoin selected players.