mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-27 01:11:21 +01:00
Merge remote-tracking branch 'origin/master' into master
This commit is contained in:
commit
d2af2bf31e
@ -94,8 +94,10 @@ public class WatcherTriggers extends PluginDependent implements Listener {
|
||||
Arrow arrow = (Arrow) event.getDamager();
|
||||
LivingEntity victim = (LivingEntity) event.getEntity();
|
||||
|
||||
if (victim.hasMetadata("NPC")) {
|
||||
return;
|
||||
if (!allowOnNPC) {
|
||||
if (victim.hasMetadata("NPC")) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (attacker instanceof Player && !AntigriefManager.canInjure((Player) attacker, victim)) {
|
||||
@ -160,8 +162,10 @@ public class WatcherTriggers extends PluginDependent implements Listener {
|
||||
|
||||
LivingEntity victim = (LivingEntity) event.getEntity();
|
||||
|
||||
if (victim.hasMetadata("NPC")) {
|
||||
return;
|
||||
if (!allowOnNPC) {
|
||||
if (victim.hasMetadata("NPC")) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (attacker instanceof Player && !AntigriefManager.canInjure((Player) attacker, victim)) {
|
||||
@ -261,8 +265,10 @@ public class WatcherTriggers extends PluginDependent implements Listener {
|
||||
LivingEntity attacker = (LivingEntity) event.getDamager();
|
||||
LivingEntity victim = (LivingEntity) event.getEntity();
|
||||
|
||||
if (victim.hasMetadata("NPC")) {
|
||||
return;
|
||||
if (!allowOnNPC) {
|
||||
if (victim.hasMetadata("NPC")) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (attacker instanceof Player && !AntigriefManager.canInjure((Player) attacker, victim)) {
|
||||
|
@ -1,2 +1,2 @@
|
||||
version = 6.10.9
|
||||
version = 6.10.10
|
||||
plugin-name = EcoEnchants
|
Loading…
Reference in New Issue
Block a user