File tree Expand file tree Collapse file tree
src/main/java/fr/snipertvmc/essentialsxgui/inventories Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,10 +79,10 @@ public HomesInventory(Player player) {
7979 "homeName" , home .getName ()))
8080 .build (), e -> {
8181
82- if (e .getClick ().isLeftClick ()) {
82+ if (e .getClick ().isRightClick ()) {
8383 player .performCommand ("essentials:home " + home .getName ());
8484
85- } else if (e .getClick ().isRightClick ()) {
85+ } else if (e .getClick ().isLeftClick ()) {
8686 new HomeEditingInventory (player , home ).open (player );
8787 SoundsUtils .playSound (player , EXGSound .GUI_CLICK );
8888
Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ public KitsAdminViewInventory(Player player) {
8383 "kitName" , kit .getName ()))
8484 .build (), e -> {
8585
86- if (e .getClick ().isLeftClick ()) {
86+ if (e .getClick ().isRightClick ()) {
8787 new KitsPlayerGiveInventory (player , kit ).open (player );
8888 SoundsUtils .playSound (player , EXGSound .GUI_CLICK );
8989
90- } else if (e .getClick ().isRightClick ()) {
90+ } else if (e .getClick ().isLeftClick ()) {
9191 new KitEditingInventory (player , kit ).open (player );
9292 SoundsUtils .playSound (player , EXGSound .GUI_CLICK );
9393
Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ public KitsPlayerViewInventory(Player player) {
8787 "kitName" , kit .getName ()))
8888 .build (), e -> {
8989
90- if (e .getClick ().isLeftClick ()) {
90+ if (e .getClick ().isRightClick ()) {
9191 player .performCommand ("essentials:kit " + kit .getName ());
9292 SoundsUtils .playSound (player , EXGSound .GUI_CLICK );
9393
94- } else if (e .getClick ().isRightClick ()) {
94+ } else if (e .getClick ().isLeftClick ()) {
9595 new KitsPreviewInventory (player , kit ).open (player );
9696 SoundsUtils .playSound (player , EXGSound .GUI_CLICK );
9797 }
You can’t perform that action at this time.
0 commit comments