
/fly Bug - Flight State is kept when changing to a world where the player does not have permission to fly
0x484 opened this issue ยท 0 comments
Type of bug
Exploit
/ess dump all
output
https://essentialsx.net/dump.html?bytebin=f7iw5Tp0DZ
Error log (if applicable)
No response
Bug description
Version: EssentialsX-2.21.0-dev+167-4e64782 - 1.21.1
I have a Permission set to essentials.fly false
in world=world
.
Therefor I should not be able to fly in that world.
But theres a Bug that allows me to activate fly in another World where Im allowed to and then switch to a world where Im not.
This is an issue because it allows players to fly in worlds where they do not have permission for the essentials.fly command.
It either works by being in a flying state, meaning actually flying then changing the world
or by just having the flight-activated state, and then changing world.
Steps to reproduce
- Set
essentials.fly false
inworld=<your-test-world>
- Switch to a world where /fly is allowed.
- Use the /fly Command
- Either be in "flying-state" or stand on ground with flight-activated state, both works, then change world to your-test-world
- See fly working in your-test-world even though you do not have permission to use /fly
Expected behaviour
You should not be able to fly in a World where you do not have the permission essentials.fly
.
Essentially, it should reset the flying state and flight-activated state when switching to worlds where you do not have the permission.
Actual behaviour
It does not reset, letting you keep your flying state and letting you keep your flight-activated state.
Meaning you can fly in worlds where you do not have permission to.
Additional Information
No response