View Issue Details

IDProjectCategoryView StatusLast Update
0007362New issuesServerpublic2018-09-27 21:18
ReporterKenixAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0007362: onPlayerChangeNick triggered when nick doesn't changed
Description

See reproduce

Steps To Reproduce

bind 1 nick a
bind 2 nick b

srun addEventHandler( 'onPlayerChangeNick', root, function() outputChatBox 'Changed' end )

Press on a, press on b ( now )

Output:
You can only change your name once every 5 seconds
Triggered

Retry again and you see this

TagsNo tags attached.

Activities

Kenix

2012-10-01 23:06

updater   ~~0017666

Last edited: 2012-10-01 23:18

Press on 1, press on 2

Output:
You can only change your name once every 5 seconds
Changed*

Retry again some times ( 2-3 )*

ccw

2012-10-02 17:43

administrator   ~~0017667

'onPlayerChangeNick' is being cancelled in Admin resource, so the event will still occur in all scripts.
(And there is no way for a script to know the current event has been cancelled)

Kenix

2012-10-02 18:03

updater   ~~0017669

Thank you!

arranTuna

2012-10-02 18:39

manager   ~~0017670

Unless those scripts use wasEventCancelled, assuming that function works. It might need priority set to high in admin for wasEventCancelled to always work.

ccw

2012-10-02 19:17

administrator   ~~0017671

I believe wasEventCancelled() is only correct after triggerEvent() has returned

Issue History

Date Modified Username Field Change