JoinRules
A internal static class in TavernLib, TavernLib.Backend.Auth. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
Internal: who may join, checked on the auth port and again at the game port, which a client can reach without the auth port.
- Listed in TavernLib.Backend.Auth
Fields
| Member | What it is |
|---|---|
const int UsernameMaxLength | 16. |
Methods
| Member | What it is |
|---|---|
static bool IsBlacklisted(UserConfig config, string username, ulong? userId, string address) | True if the name (without case), user id or address is on the blacklist. |
static bool IsValidName(string name) | True for 1 to 16 ASCII letters, digits, spaces, hyphens and underscores, not all blank. Only new names are checked. |
static bool IsWhitelisted(UserConfig config, string username, ulong? userId, string address, string registeredFrom) | True if the name, id or address is on the whitelist, or the address the account was registered from is. |
static bool WhitelistOn(ServerSettings settings, UserConfig config) | True with whitelist_enabled, or (without /launcherauth) whenever the whitelist has any entry. |
2 private and internal methods
| Member | What it is |
|---|---|
private static bool HasEntries(UserConfig.ListConfig list) | Returns whether a list has any username, address or user id. |
private static bool Matches(UserConfig.ListConfig list, string username, ulong? userId, string address, string registeredFrom) | Returns whether a list holds the username (ignoring case), user id, address, or the address the account registered from. |