OpenInventory is not working

Discussion in 'Plugin Development' started by ordu34, Jul 21, 2024.

Thread Status:
Not open for further replies.
  1. Offline

    ordu34

    I coding eventlistener function and command function at same class, but openInventory is not working

    upload_2024-7-21_12-19-33.png
    any isim2 don't equal p.getdisplayname,

    upload_2024-7-21_12-23-44.png

    upload_2024-7-21_12-24-16.png

    There isn't error in console
     
  2. Offline

    KarimAKL

    @ordu34 You are creating two instances of the MilletKomut class, so the inventory 'i' is different for the listener and command. Create a local variable and assign it the MilletKomut instance, then use that instance for both the listener and the command executor.
     
Thread Status:
Not open for further replies.

Share This Page