Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
partiusfabaa authored Dec 16, 2023
1 parent 3e36240 commit e934a2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ public class VIPMyModule : BasePlugin, IModulePlugin
{
_api = provider.Get<IVipCoreApi>();
_api.RegisterFeature(Feature, selectItem: OnSelectItem);
_api.OnPlayerSpawn += OnPlayerSpawn;
}

private void OnPlayerSpawn(CCSPlayerController player)
{
if (_api.PlayerHasFeature(player, Feature))
{
_api.PrintToChat(player, $"VIP player - {player.PlayerName} has spawned");
}
}

private void OnSelectItem(CCSPlayerController player, IVipCoreApi.FeatureState state)
Expand Down

0 comments on commit e934a2f

Please sign in to comment.