Added sneak toggle to endershot

This commit is contained in:
Auxilor 2020-11-23 20:23:00 +00:00
parent aeceabd593
commit bccc5a9378
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,8 @@ public class Endershot extends EcoEnchant {
Player player = (Player) event.getEntity();
if(!player.isSneaking()) return;
if(!EnchantChecks.mainhand(player, this)) return;
if(!player.getInventory().contains(Material.ENDER_PEARL, 1) && !player.getGameMode().equals(GameMode.CREATIVE))

View File

@ -3,7 +3,7 @@
#
name: "Endershot"
description: Shoot ender pearls out of your bow
description: Shoot ender pearls out of your bow while crouching
enabled: true
obtaining: