performCommand help.

Discussion in 'Plugin Development' started by spurkle, Aug 28, 2014.

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

    spurkle

    [​IMG]

    I am trying to make so when you right click a player, you automagically execute an /openinv <playerName> command. But for sometimes when i right click a player the /openinv inventory closes right after it opens. Like it flashes for a second.

    Any help appreciated.
    THx.
     
  2. Offline

    Aephout14

    I think changing clickedPlayer.closeInventory(); to
    clickedPlayer.openInventory(); would help
     
  3. Offline

    TheMintyMate

    Perhaps you need to take this up with OpenInv (mention bug in comments). Refer to this thread when reporting bug.

    Hope this helped,
    - Minty
     
    spurkle likes this.
  4. Offline

    spurkle

    I honestly dont think it is their issue. As i tried using essentials /invsee command, but i never managed to make it work.
     
  5. Offline

    TheMintyMate

    Hmm, you may want to mention this nevertheless, as this code looks like it should work to me. You could always look at this thread:
    https://forums.bukkit.org/threads/send-and-execute-commands.81049/

    - Minty
     
Thread Status:
Not open for further replies.

Share This Page