mirror of
https://github.com/TotalFreedomMC/TF-WorldGuardExtraFlagsPlugin.git
synced 2024-05-18 10:31:21 +00:00
parent
02b47224da
commit
7cd74edb2e
|
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue