#(zloyx_) "on player chat" doesn't change anything

18 messages · Page 1 of 1 (latest)

uncut yew
#

Hello. I'm trying to edit format, cancel or do something to player chat event, but nothing happens. Console says that format is edited (and even output right message), that message in cancelled (no message in console) but players still can see old message in chat. No errors in console, everything seems working for sm reason.
Chat is modified by CMI and InteractiveChat, but i set InteractiveChat to lowest priority.

chat_test:
    type: world
    events:
        on player chats bukkit_priority:HIGHEST:
            - determine cancelled
zenith viperBOT
#

(zloyx_) "on player chat" doesn't change anything

zenith viperBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

uncut yew
#

I deleted both CMI and InteractiveChat but message still won't cancel...

grim dock
#

!lang bukkit priority

rancid wigeonBOT
#
Possible Confusion

Did you mean to search for bukkit event priority?

rancid wigeonBOT
# grim dock !lang bukkit priority

Script events that are backed by standard Bukkit events are able to control what underlying Bukkit event priority
they register as.
This can be useful, for example, if a different plugin is cancelling the event at a later priority,
and you're writing a script that needs to un-cancel the event.
This can be done using the "bukkit_priority" switch.
Valid priorities, in order of execution, are: LOWEST, LOW, NORMAL, HIGH, HIGHEST, MONITOR.
Monitor is executed last, and is intended to only be used when reading the results of an event but not changing it.
The default priority is "normal".

Group

Script Events

grim dock
#

you want lowest priority, not the opposite

#

CMI takes it to around LOW or NORMAL, so LOWEST will attempt to take priority

uncut yew
grim dock
uncut yew
dense martenBOT
uncut yew
#

Oh wait

#

nvm, all working now

#

thanks!