mirror of
https://github.com/TotalFreedomMC/TF-WorldGuardExtraFlagsPlugin.git
synced 2025-02-05 11:52:42 +00:00
parent
02b47224da
commit
7cd74edb2e
1 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,11 @@ public class EntityListenerOnePointNine implements Listener
|
|||
event.setCancelled(true);
|
||||
|
||||
player.setGliding(state == ForcedState.FORCE);
|
||||
|
||||
if (state == ForcedState.DENY)
|
||||
{
|
||||
player.teleport(player.getLocation());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue