mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-19 19:41:01 +02:00
Fix login death caused by built up fall damage using /fly.
This commit is contained in:
parent
9ec0ca25a5
commit
545d706a70
@ -305,6 +305,7 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
|
|
||||||
if (user.isAuthorized("essentials.fly.safelogin"))
|
if (user.isAuthorized("essentials.fly.safelogin"))
|
||||||
{
|
{
|
||||||
|
user.setFallDistance(0);
|
||||||
if (LocationUtil.shouldFly(user.getLocation()))
|
if (LocationUtil.shouldFly(user.getLocation()))
|
||||||
{
|
{
|
||||||
user.setAllowFlight(true);
|
user.setAllowFlight(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user