Repository navigation
v2.0.0
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/VipCoreApiand all modules fromVIP_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 ofGroups/Valuesto the root of the file.Delaymoves fromvip.jsontovip_core.json.UseCenterHtmlMenuis replaced byMenuType(center,chat,console).- The old files are kept as
vip.json.oldandvip_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 tofalseor""is turned off for that group. - Admin menu:
!vip_adminto give or remove VIP (preset or custom time), reload configs and players. Access is set withAdminMenuPermissioninvip_core.json. - Values in the VIP menu: e.g.
Money [+3000$],Speed [+15%],Respawn [1/2], and colored shortON/OFF. - Chat messages when an admin gives, changes or removes a player's VIP.
- All module translations now live in the core
langfiles, 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; callDispose()on unload.OnPlayerSpawn(player, vip)is now called for every player, checkvip.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