1.12.2 Open another inventory with slots

Discussion in 'Spigot Plugin Development' started by Nico12, Feb 6, 2020.

  1. I think the title already speaks for itself, what I try to do is that when the player clicks on that slot then there will be another inventory but the name of that inventory must be defined in a configuration file, what I did was that at click on the slot, close Inventory 1 and there will be inventory 2 [Which is defined in a configuration file], until there everything goes well, the problem comes when I want to return to inventory 1, since when doing the same procedure as inventory 1, instead of opening inventory 1 open inventory 2 again. If you do not understand, I will pass you my code so you can understand a little more (I will also pass the configuration file)



    YamlConfiguration file:

    Thanks in advance!
    the used api is called SmartInvs