Ok, so I have this code here and i've been trying to work on it for a day but I believe something is handling this first which is why it's not working. I had this code working in my server hub fine, but then as soon as I restarted my hub it also broke there just like in my survival server (the one im running the code on atm).
import:
net.citizensnpcs.api.event.NPCClickEvent
on NPCClickEvent:
set {_ID} to event.getNPC().getId()
set {_p} to event.getClicker()
{_ID} is 3:
make {_p} execute command "/world"
{_ID} is 4:
make {_p} execute command "/discord"
{_ID} is 6:
make {_p} execute command "/store"
Yes, those commands do work, yes i've checked console and nothing happens, yes i've tried ust doing on npclickevent: broadcast "blah", yes i've tried using priority monitor, yes i've tried doing on click: broadcast "blah" and that does work.
import:
net.citizensnpcs.api.event.NPCClickEvent
on NPCClickEvent:
set {_ID} to event.getNPC().getId()
set {_p} to event.getClicker()
{_ID} is 3:
make {_p} execute command "/world"
{_ID} is 4:
make {_p} execute command "/discord"
{_ID} is 6:
make {_p} execute command "/store"
Yes, those commands do work, yes i've checked console and nothing happens, yes i've tried ust doing on npclickevent: broadcast "blah", yes i've tried using priority monitor, yes i've tried doing on click: broadcast "blah" and that does work.