mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-24 00:41:23 +01:00
commit
2cc9579e43
@ -17,6 +17,7 @@ import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.bukkit.persistence.PersistentDataContainer;
|
||||
import org.bukkit.persistence.PersistentDataType;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.bukkit.entity.Arrow;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -46,13 +47,15 @@ public class Soulbound extends EcoEnchant {
|
||||
return;
|
||||
}
|
||||
|
||||
if (player.getKiller() != null) {
|
||||
Player killer = player.getKiller();
|
||||
int reaperLevel = EnchantChecks.getMainhandLevel(killer, EcoEnchants.REAPER);
|
||||
if (reaperLevel > 0) {
|
||||
if (!(EcoEnchants.REAPER.getDisabledWorlds().contains(killer.getWorld()))) {
|
||||
if (EnchantmentUtils.passedChance(EcoEnchants.REAPER, reaperLevel)) {
|
||||
return;
|
||||
if (!(event.getEntity() instanceof Arrow)) {
|
||||
if (player.getKiller() != null) {
|
||||
Player killer = player.getKiller();
|
||||
int reaperLevel = EnchantChecks.getMainhandLevel(killer, EcoEnchants.REAPER);
|
||||
if (reaperLevel > 0) {
|
||||
if (!(EcoEnchants.REAPER.getDisabledWorlds().contains(killer.getWorld()))) {
|
||||
if (EnchantmentUtils.passedChance(EcoEnchants.REAPER, reaperLevel)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user