PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionPlayerSetName.lua

21 lines
530 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
----------------------------------------------------------------
--玩家改名检测
local XRedPointConditionPlayerSetName = {}
local Events = nil
function XRedPointConditionPlayerSetName.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_PLAYER_SET_NAME)
}
return Events
end
function XRedPointConditionPlayerSetName.Check()
if XPlayer.ChangeNameTime == 0 then
return true
end
return false
end
return XRedPointConditionPlayerSetName