Finished config targets

This commit is contained in:
Auxilor
2020-09-04 19:39:55 +01:00
parent 28daa94db0
commit 610594f38d
168 changed files with 449 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ public class Diverse extends EcoEnchant {
Player player = (Player) event.getDamager();
Player victim = (Player) event.getEntity();
if(!Target.Applicable.SWORD.getMaterials().contains(victim.getInventory().getItemInMainHand().getType()))
if(!victim.getInventory().getItemInMainHand().getType().toString().endsWith("_SWORD"))
return;
if (!EnchantChecks.mainhand(player, this)) return;