Skip to content

Commit

Permalink
Update PlayerMoveListener.java
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Jan 20, 2024
1 parent 979e15f commit a02a759
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public void onPlayerMove(PlayerMoveEvent event) {
player.setVelocity(main.getVelocity().get(player));
main.getThrown().add(player);
main.getVelocity().remove(player);
player.sendMessage("Velocity set");
}
if(loadConfig.throwfalldamage()) {
if(main.getThrown().contains(player) && player.getLocation().getBlock().getRelative(BlockFace.DOWN).getType() != Material.AIR && player.getFallDistance() == 0) {
Expand Down

0 comments on commit a02a759

Please sign in to comment.