【VipLogo·服务器等级】

原创 【VipLogo·服务器等级】 1.1.3

其他插件可以通过以下方式调用本插件:
  • 获取玩家等级API:
JSON:
if (condition.RequiredLevel > 0)
  {
    int currentLevel = 0;
    if (VipLogo)
    {
      currentLevel = (int)VipLogo.CallHook("GetLv", (ulong)player.userID);
    }
  • 监听玩家升级事件Hook:
JSON:
void OnVipLogoPlayerUP(BasePlayer player, int level)
{
    Puts($"玩家 {player.displayName} 升级到了 {level} 级!");
}