Merge remote-tracking branch 'origin/master' into master

This commit is contained in:
Auxilor 2021-03-26 22:43:48 +00:00
commit d2af2bf31e
2 changed files with 13 additions and 7 deletions

View File

@ -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)) {

View File

@ -1,2 +1,2 @@
version = 6.10.9
version = 6.10.10
plugin-name = EcoEnchants