Solved (REFLECT) NPCClickEvent not working

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

coolblue

Supporter
Jul 25, 2023
23
0
1
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.