private void ICanUseDoor(string id, TileEntitySecure entity) { // Get ClientInfo from ID var client = ConsoleHelper.ParseParamIdOrName(id); // Call game hook Interface.Call("CanUseDoor", client, entity); // Call deprecated hook Interface.CallDeprecatedHook("OnDoorUse", "CanUseDoor", new DateTime(2016, 12, 5), entity, id); }
private void ICanUseDoor(string id, TileEntitySecure entity) => Interface.Call("CanUseDoor", ConsoleHelper.ParseParamIdOrName(id), entity);
private void OnDoorUse(TileEntitySecure door, string steamId) { HookCalled("OnDoorUse"); PrintWarning($"A door was used by a player with the Steam ID {steamId}. Owner: {door.GetOwner()} Permission to use: {door.GetUsers().Contains(steamId)}"); }
private void OnDoorUse(TileEntitySecure door, string steamId) { HookCalled("OnDoorUse"); PrintWarning($"A door was used by a player with the Steam ID {steamId}. Owner: {door.GetOwner()} Permission to use: {door.GetUsers().Contains(steamId)}"); }