Skip to main content

ServerJoinLock

A struct in Root.Township, Alta.Networking.Servers.

A reason the server is refusing joins, such as a wipe or a console lock. Kept in the server's ServerLocks; while any exist, join requests are denied with the highest-level lock's message.

Fields​

MemberWhat it is
int levelPriority of the lock; the highest-level lock's message is shown to refused players.
string messageFixed message shown to players refused by this lock.
Func<string> messageGeneratorOptional function that builds the message each time, for messages that change (like a countdown).

Properties​

MemberWhat it is
string Message { get; }The lock message, from messageGenerator when set, otherwise message.

Methods​

MemberWhat it is
override string ToString()Returns the message and level as text.

Used in​

Members of other types that take, return or hold a ServerJoinLock: