EssentialsX

EssentialsX

2M Downloads

[BUG REPORT] Disable fly in The End

Sikatsu opened this issue ยท 6 comments

commented

Hey,

I disabled fly for players within The End, however theres a bug.

When they get hit by a Shulker, and they relog, they can just use fly even while it's disabled.

worlds:
  world2_the_end:
    permissions:
    - -essentials.fly

Are you able to fix this issue?

commented

I need some more information to even begin investigating:

  1. EssentialsX version (/ess reload)
  2. Server version (/ver)
  3. What gamemode is the player in when they are logging in.
commented
  1. Version 201-b354
  2. Spigot 1.10.2 freshly compiled today. Are you reffering to the exact number aswell?
  3. Survival mode.
commented

Hi, sorry I was a bit occupied last night. This is not a bug, but a matter of permission setting.

As per the Command Reference:

essentials.fly.safelogin Players with this command will automatically switch to fly mode if they login whilst floating in the air.

commented

No problem!

Thanks, so I should just deny this the same way as - -essentials.fly right?

commented

Is is possible to remove the setAllowFlying() and only set the player to setFlying(true), so if he stops with flying he can't fly again

commented

@Sikatsu Correct, -essentials.fly.safelogin.

@Bammerbom Not without some more code, but please create a separate issue if you feel necessary.