AdminId

Last Updated2026-04-10
Created At2015-03-05

Methods11
SymbolDescription
BindIdentityBinds an admin to an identity for fast lookup later on. The bind must be unique.
CanTargetTests whether one admin can target another. The heuristics for this check are as follows: 0. If the targeting AdminId is INVALID_ADMIN_ID, targeting fails. 1. If the targeted AdminId is INVALID_ADMIN_ID, targeting succeeds. 2. If the targeted AdminId is the same as the targeting AdminId, (self) targeting succeeds. 3. If the targeting admin is root, targeting succeeds. 4. If the targeted admin has access higher (as interpreted by (sm_immunity_mode) than the targeting admin, then targeting fails. 5. If the targeted admin has specific immunity from the targeting admin via group immunities, targeting fails. 6. Targeting succeeds.
GetFlagsReturns the bitstring of access flags on an admin.
GetGroupReturns group information from an admin.
GetPasswordGets an admin's password.
GetUsernameRetrieves an admin's user name as made with CreateAdmin().
HasFlagReturns whether or not a flag is enabled on an admin.
InheritGroupAdds a group to an admin's inherited group list. Any flags the group has will be added to the admin's effective flags.
SetBitFlagsSets multiple bitwise flags to be enabled/disabled on an admin.
SetFlagSets whether or not a flag is enabled on an admin.
SetPasswordSets a password on an admin.
Properties2
SymbolTypeDescription
GroupCountintThe number of groups of which this admin is a member.
ImmunityLevelintImmunity level used for targetting.