EssentialsX

EssentialsX

2M Downloads

Disable Fly per world

Sikatsu opened this issue ยท 14 comments

commented

I tried to disable fly in the end. So I denied the permission essentials.fly and essentials.fly.safelogin for that world. However, when I fall in the void and logout before I die and log back in, my fly is enabled. Is there anyway to prevent this?

commented

This is how the permissions are setup: http://prntscr.com/iq7cnl

commented

You have essentials.fly.safelogin

Also those errors are caused by your customgui plugin.

commented

I do, but it's set to false on the ''world2_the_end'' world.

How would the errors be caused by the customgui plugin?

commented

Please follow the issue template. It exists for a reason and would allow us to narrow down the cause of the issue.

It is likely that your permissions plugin is not able to do per-world permissions checks at the point that EssentialsX is trying to check for the safelogin permission.

commented

Sorry for that. I'm using luckperms.

commented

/ess debug
log out, log back in, post your entire log to https://gist.github.com

commented

./lp debug says: https://pastebin.com/ueqcNuRF

Using these permissions: http://prntscr.com/iqc5n1

commented

Are you OP? Do you have '*'?

Please give the luckperms support the full error.

commented

As I said, this is likely due to the fact that LP can't determine what world you're in when you may not have even spawned yet, so I doubt there's anything we can do.

You probably want to report the error with /lp debug to LuckPerms as Lax suggested.

commented

Could you post the output when logging in with both /lp debug and /ess debug enabled?

commented

My proposal for a solution to this problem would be to:

  • Have per-world permissions essentials.fly.safelogin.<world> to enable safelogin in that world
  • Make essentials.fly.safelogin always enable safelogin in all worlds

This would mean you could give a group essentials.fly.safelogin.* then negate essentials.fly.safelogin.noflyworld, but assumes that we're able to know what world they're in before they log in.

We could have per-world /fly permissions, but that wouldn't make a whole lot of sense when the only time they would make sense is safelogin.

commented

Sounds nice.

commented

Re-reviewing this issue (due to #3697 and concerns about whether this was a suitable fix):

It is likely that your permissions plugin is not able to do per-world permissions checks at the point that EssentialsX is trying to check for the safelogin permission.

this is likely due to the fact that LP can't determine what world you're in when you may not have even spawned yet

Both of these assertions had no evidence at the time as the LuckPerms debug tool wasn't functioning properly. As a result, there isn't any evidence to support whether the solution previously proposed in this comment actually makes sense, nor to determine whether #3697 is relevant to this issue.

For now I'm going to close this issue as there hasn't been enough information to solve this.

@Sikatsu If this is still an issue you're still interested in finding a solution for, please could you respond with the output of /lp verbose on <player> & essentials.fly? If not, feel free to ignore this issue.