private void OnServerInitialized() { instance = this; permission.RegisterPermission(MASTER_PERM, this); holders = new MasterKeyHolders(); if (Clans == null) { Puts(RUST_CLANS_NOT_FOUND); } else { Puts(RUST_CLANS_HOOK); } }
public RustIOHandler(DoorAuthorizer door) { this.Clans = SharedDoors.GetClans(); if (door.BaseDoor is CodeLock) { if (door.GetWhiteList().Count > 0) { this.OriginalPlayerID = door.GetWhiteList()[0]; } else { this.OriginalPlayerID = 0; } } this.Door = door; }
public RustIOHandler(DoorAuthorizer door) { if (door.BaseDoor is CodeLock) { CodeLock codeLock = door.BaseDoor as CodeLock; List <ulong> whitelist = codeLock.whitelistPlayers; if (whitelist.Count > 0) { this.OriginalPlayerID = whitelist[0]; } else { this.OriginalPlayerID = 0; } } this.Door = door; this.Clans = SharedDoors.getInstance().Clans; }
private void Unload() { instance = null; }