forked from endernon/PGRData
21 lines
530 B
Lua
21 lines
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
|