RoomService v2.3.1
Loading...
Searching...
No Matches
RoomService.SetRoundLength Class Reference

Lua function to set the round length for the lobby.

Member Function Documentation

◆ 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
timeThe 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 }