Skip to main content

PermissionsHelper

A static class in Root.Township, ATT.Character.QuickAccessMenu.

Checks whether a user may use the in-game server settings and command menus.

Fields​

2 private and internal fields
MemberWhat it is
private static readonly Logger loggerNLog logger for this class.
private static readonly GroupPermissions[] requiredPermissionsPermissions needed: Console only.

Methods​

MemberWhat it is
static async Task<bool> DoesUserHavePermissions(int userIdentifier, int serverIdentifier)Asks the API whether the user has Console permission on the server. Always true in the editor; false on error.
static async Task<bool> IsMenuOrCommandsAvailableForUser(IPlayer player)Always returns false in this build.