Opening Inventories without moving cursor (GUI)

Discussion in 'Plugin Development' started by Pr0_fAssEr, Aug 14, 2015.

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

    Pr0_fAssEr

    Im trying to make a plugin that has GUI with next page but when i click the next page item its opening the other gui but moves my cursor to the middle of the screen.

    i dont want it to happend and i need it to work on 1.7 version.

    Tnx for the helpers
     
  2. How about you just clear the inventory and set the new contents? The cursor is always placed in the middle when opening an inventory
     
  3. Offline

    Pr0_fAssEr

    can u give me an ex?
     
  4. Offline

    CoolDude53

    Code:
    inv.setContents(newInv.getContents());
    player.updateInventory();
     
Thread Status:
Not open for further replies.

Share This Page