mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Added sneak toggle to endershot
This commit is contained in:
parent
aeceabd593
commit
bccc5a9378
@ -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))
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user