Antag Rolebans (#35966)
Co-authored-by: beck-thompson <beck314159@hotmail.com> Co-authored-by: Hannah Giovanna Dawson <karakkaraz@gmail.com>
This commit is contained in:
@@ -58,6 +58,9 @@ public sealed class JobWhitelistManager : IPostInjectInit
|
||||
SendJobWhitelist(session);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns false if role whitelist is required but the player does not have it.
|
||||
/// </summary>
|
||||
public bool IsAllowed(ICommonSession session, ProtoId<JobPrototype> job)
|
||||
{
|
||||
if (!_config.GetCVar(CCVars.GameRoleWhitelist))
|
||||
|
||||
Reference in New Issue
Block a user