Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break blocks and chests flags aren't working #331

Closed
tylerking opened this issue Oct 6, 2018 · 15 comments
Closed

Break blocks and chests flags aren't working #331

tylerking opened this issue Oct 6, 2018 · 15 comments
Assignees

Comments

@tylerking
Copy link

I left my settings as default and it seems as though at least these 2 flags are not currently working. Any player can go to another players islands and break blocks and open chests and take items. Thought as to why this might be happening?

@tastybento tastybento self-assigned this Oct 8, 2018
@tastybento
Copy link
Member

I'll check into it.

@tastybento
Copy link
Member

Hmm, I just did a clean install and I cannot replicate this issue. What does your /bentobox version say? If you do /is settings on the island, what ranks are set as red or green?

@tylerking
Copy link
Author

I wonder whats going on. So /bentobox version says:

https://pastebin.com/raw/LRetYf3T

For /is settings everything is set to the following except "Lock Island" which is all green:

Red = Visiter, Coop, Trusted, Member
Green = Sub-Owner, Owner

@tastybento
Copy link
Member

Sorry for the delay. In the latest release there is a new admin command why. So you can use this command to try and find out why the game thinks the player is allowed to do something. Can you try it and see why? Here's an example output:

>bsb why tastybento
[10:59:27 INFO]: Turning on console debug for tastybento
[10:59:31 INFO]: [BentoBox] Why: EntityDamageByEntityEvent in world BSkyBlock_world at 0,125,2
[10:59:31 INFO]: [BentoBox] Why: tastybento HURT_ANIMALS - RANK_ALLOWED
[10:59:42 INFO]: [BentoBox] Why: PlayerInteractEvent in world BSkyBlock_world at 0,125,1
[10:59:42 INFO]: [BentoBox] Why: tastybento CHEST - RANK_ALLOWED
[10:59:47 INFO]: [BentoBox] Why: BlockBreakEvent in world BSkyBlock_world at -1,124,1
[10:59:47 INFO]: [BentoBox] Why: tastybento BREAK_BLOCKS - RANK_ALLOWED
[10:59:47 INFO]: [BentoBox] Why: EntityPickupItemEvent in world BSkyBlock_world at -1,124,1
[10:59:47 INFO]: [BentoBox] Why: tastybento ITEM_PICKUP - RANK_ALLOWED

@tastybento tastybento assigned tylerking and unassigned tastybento Oct 27, 2018
@tylerking
Copy link
Author

Hey. I've tried it and went to an island and it didn't log everything I could do like opening chests, breaking/placing blocks but here are a few things it did say:

https://pastebin.com/raw/uVvdXiCg

@tastybento
Copy link
Member

The report indicates that the world is not recognized as a registered island world. Can you paste what you see when you do /bentobox version in the console?
Also, share your config.yml so I can see what it says (after you shutdown).

@tylerking
Copy link
Author

Here you go:

/bentobox version: https://pastebin.com/HfmGykpy
Config: https://pastebin.com/PVJKjqyL

@tastybento
Copy link
Member

Can you delete your locale folder, reload and paste the version output again? It's using old text strings, so some info is missing. Thanks.

@Poslovitch
Copy link
Member

Poslovitch commented Nov 1, 2018

This issue is related to BentoBox's protection. I won't move it there though, so please keep answering there.

@tylerking
Copy link
Author

Ok. Deleted locale and here is the updated version output: https://pastebin.com/tLV9j0h2

@tylerking
Copy link
Author

tylerking commented Nov 8, 2018

Any news on this? I tried the latest update but the problem persists.

https://pastebin.com/TFdCR0uM

@Poslovitch
Copy link
Member

/bsbadmin why should work on the latest release. Could you check that out please?

@Poslovitch Poslovitch transferred this issue from BentoBoxWorld/BSkyBlock Nov 8, 2018
@Poslovitch Poslovitch added Status: Under investigation Investigating the interest and the feasability of the issue. Status: Need answer Waiting for more information to be provided by the issue's author. labels Nov 8, 2018
@Poslovitch
Copy link
Member

Oh, my mistake. I haven't seen that thing: https://pastebin.com/raw/uVvdXiCg

I'll investigate that ASAP

@Poslovitch Poslovitch removed the Status: Need answer Waiting for more information to be provided by the issue's author. label Nov 10, 2018
@tastybento tastybento assigned tastybento and unassigned tylerking Nov 10, 2018
@tastybento
Copy link
Member

tastybento commented Nov 10, 2018

I can replicate with the config.yml supplied. Working on this now.

tastybento added a commit that referenced this issue Nov 10, 2018
#331

The isIslandNether(), isNether(), etc. methods need to check the
environment of the world.
@tastybento tastybento added Type: Bug and removed Status: Under investigation Investigating the interest and the feasability of the issue. labels Nov 10, 2018
@tastybento
Copy link
Member

Should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants