BentoBoxWorld/Upgrades

GUI not opening

myavuzokumus opened this issue · 17 comments

Description

Describe the bug

image

BentoBox Version (Mandatory)

image

Hello,

Did you have an island when you used this command?

Hmm, yes. It gives the error only when it is out of the island.

Ok, so that should be fixed in the last build

Well shouldn't be possible anymore, can you send a /bentobox version?

Well, I don't see why that didn't work. For me, that had repaired the problem.

So I added one more condition for the GUI.

image
Keep contiunes in build 14

I tried to change what I use to get the island.
But if this persists, I have no more idea.

I can't really understand why this is doing that since I'm checking before running the command

@Guillaume-Lebegue I'll have a look at this ;)

Ok, now working but said "You haven't island" but i only not on island, already have island.

Is it saying that in the console or in the chat ?

And are you perhaps using the command in a different world than the one with your island ?

1- Chat
2- Yes.

Ok, so that's why. I'm getting the island of the world where is the player not the one linked to the command. I'll do some modifications later to link it to the command not the player.

@Guillaume-Lebegue Use getWorld() in composite command to auto-get the world of the command. :-)

Yes, but I'm looking into it and I don't think I will do it because when I change the range, I also fire the event that goes with it. But doing that, do something strange for the user that is not in its island.

And by checking that, I have also found that upgrading the range while in the spawn also do this strange thing.
So I think I will add some condition that the player need to be on his island to open the GUI.