Teleport player back when denying glide

This should help with #115
This commit is contained in:
isokissa3 2020-04-27 04:16:56 +03:00
parent 02b47224da
commit 7cd74edb2e

View file

@ -36,6 +36,11 @@ public class EntityListenerOnePointNine implements Listener
event.setCancelled(true); event.setCancelled(true);
player.setGliding(state == ForcedState.FORCE); player.setGliding(state == ForcedState.FORCE);
if (state == ForcedState.DENY)
{
player.teleport(player.getLocation());
}
} }
} }
} }