Skip to content

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 03:12

VIPCore 2.0

Found a bug or have a question? Message me on Discord: thesamefabius

Big update: the core was rewritten, the module API changed, and every bundled module was updated and fixed.

⚠️ Before updating

  • Back up addons/counterstrikesharp/configs/plugins/VIPCore/.
  • Replace everything: plugins/VIPCore, shared/VipCoreApi and all modules from VIP_Modules.zip. Modules from 1.x do not work with 2.0.
  • Third-party modules built for 1.x need to be updated by their authors (see the module example in the README).

Configs migrate automatically

On the first start the old configs are converted to the new format:

  • vip.json: groups are moved out of Groups / Values to the root of the file.
  • Delay moves from vip.json to vip_core.json.
  • UseCenterHtmlMenu is replaced by MenuType (center, chat, console).
  • The old files are kept as vip.json.old and vip_core.json.old.

The database stays the same, existing VIPs keep their status.

New

  • Group inheritance: "$inherit": "VIP" takes all features of another group. A feature set to false or "" is turned off for that group.
  • Admin menu: !vip_admin to give or remove VIP (preset or custom time), reload configs and players. Access is set with AdminMenuPermission in vip_core.json.
  • Values in the VIP menu: e.g. Money [+3000$], Speed [+15%], Respawn [1/2], and colored short ON / OFF.
  • Chat messages when an admin gives, changes or removes a player's VIP.
  • All module translations now live in the core lang files, nothing needs to be added by hand.
  • New commands: css_vip_admin, css_reload_vip_player <steamid>, css_vip_help.

Fixes

  • Players can no longer use a feature their group doesn't have or that they switched off (Respawn, ResetDeaths, TeammatesHeal, weapons menu and others).
  • Effects are removed right away when VIP is removed or expires (FOV, tag, gravity, rainbow model, admin flags, XP multiplier).
  • VIP_Flags removes the old group's flags when the group changes.
  • VIP_Gifts: fixed console command injection through player names; players who already have VIP no longer get a gift that overwrites it.
  • VIP_FastReload no longer gives infinite ammo; VIP_Gravity works after ladders; VIP_Bhop speed limit is smooth; VIP_Money no longer spams the console.
  • Regeneration works on the first map, modules work after a hot reload, many null reference crashes fixed.
  • Lower server load: tick-based modules (Bhop, Jumps, Gravity, Speed, Endurance) only process VIP players.

For module developers

The API was reworked, see the README example:

  • class MyFeature(IVipCoreApi api) : VipFeature<int>("MyFeature", api): the feature registers itself; call Dispose() on unload.
  • OnPlayerSpawn(player, vip) is now called for every player, check vip.
  • IsFeatureEnabled(player) = VIP + group has the feature + switched on.
  • New events: OnPlayerAuthorized, OnPlayerRemoved, OnPlayerDisconnect, OnFeatureDisplay.
  • IsClientVip → IsPlayerVip, GiveClientVip → GivePlayerVip, and so on.

Full Changelog: v1.4.5...v2.0.0