Lua function to set the round length for the lobby.
◆ Implementation()
| void RoomService.SetRoundLength.Implementation |
( |
int | time | ) |
|
|
inlineprivate |
Usage:
Lua function to set the round length for the lobby.
Definition RoomServiceLuaFunctions.cs:452
Definition MyPluginInfo.cs:2
- Parameters
-
| time | The round length in seconds (minimum 30). |
Source Code
467 {
468 if (!RoomServiceUtils.IsOnlineHost())
469 {
470 return;
471 }
472
473 time = Math.Max(30, time);
474
475 ChatApi.SendMessage("/settime " + time.ToString());
476 }