PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionPlayerSetName.lua

21 lines
No EOL
530 B
Lua

----------------------------------------------------------------
--玩家改名检测
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