• 注册后才能下载/购买插件!快来注册吧,注册即可免费下载 精翻插件 !【点我注册
  • RustSB.COM向广大野生Rust插件作者发出入驻邀请!详情请见[原创作者条约]
【VipLogo·服务器等级】

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

API方法(供其他插件调用)​

  • GetLv(ulong id) - 获取玩家等级(只读)
  • LogoLV(ulong userID) - 获取玩家等级(公开API版本)
  • API_AddPlayerLevel(ulong userID, int amount) - 增加玩家等级
  • API_RemovePlayerLevel(ulong userID, int amount) - 扣除玩家等级
  • API_AddPlayerXP(ulong userID, int amount) - 增加玩家经验值
  • API_RemovePlayerXP(ulong userID, int amount) - 扣除玩家经验值
  • API_GetPlayerXP(ulong userID)` - 获取玩家当前经验值
  • API_GetPlayerRequiredXP(ulong userID)` - 获取玩家升级所需经验值
  • API_GetPlayerMaxLevel(ulong userID)` - 获取玩家等级上限
  • GetPlayerMaterialReduction(ulong userID) - 获取玩家材料减免设置
  • GetPlayerUpgradeReduction(ulong userID) - 获取玩家升级建筑材料减免倍率
  • GetPlayerBuildReduction(ulong userID) - 获取玩家建造建筑材料减免倍率
  • GetPlayerRepairReduction(ulong userID) - 获取玩家维修物品材料减免倍率
  • GetPlayerDurabilityReduction(ulong userID) - 获取玩家耐久减免设置
  • GetPlayerGatheringEfficiency(ulong userID) - 获取玩家砍树挖矿刨尸效率设置
  • API_RegisterThirdPartyTitle(Plugin plugin, Func<BasePlayer, string> titleProvider, int fontSize) - 注册第三方称号提供者
  • API_UnregisterThirdPartyTitle(Plugin plugin) - 注销第三方称号提供者
  • API_GetPlayerFullTitle(BasePlayer player, bool includeColors, bool includeFontSize, int defaultFontSize) - 获取玩家完整称号

Hook 事件(供其他插件监听)​

  • OnVipLogoPlayerUP(BasePlayer player, int newLevel) - 玩家升级时触发
  • OnVipLogoPlayerDown(BasePlayer player, int newLevel, int oldLevel) - 玩家降级时触发