Protect glow item frames (#1413)

Consistent with regular item frames
This commit is contained in:
drbot7
2021-06-19 09:52:16 -07:00
committed by GitHub
parent f4680c4051
commit fbf4c7c45b
4 changed files with 4 additions and 2 deletions
@@ -958,6 +958,7 @@ public class EntityEventHandler implements Listener
//if the damaged entity is a claimed item frame or armor stand, the damager needs to be a player with build trust in the claim
if (subEvent.getEntityType() == EntityType.ITEM_FRAME
|| subEvent.getEntityType() == EntityType.GLOW_ITEM_FRAME
|| subEvent.getEntityType() == EntityType.ARMOR_STAND
|| subEvent.getEntityType() == EntityType.VILLAGER
|| subEvent.getEntityType() == EntityType.ENDER_CRYSTAL)
@@ -1969,6 +1969,7 @@ class PlayerEventHandler implements Listener
materialInHand == Material.TNT_MINECART ||
materialInHand == Material.ARMOR_STAND ||
materialInHand == Material.ITEM_FRAME ||
materialInHand == Material.GLOW_ITEM_FRAME ||
spawn_eggs.contains(materialInHand) ||
materialInHand == Material.INFESTED_STONE ||
materialInHand == Material.INFESTED_COBBLESTONE ||
+1 -1
View File
@@ -4,7 +4,7 @@ softdepend: [Vault, Multiverse-Core, My_Worlds, MystCraft, Transporter, TheUnder
dev-url: https://dev.bukkit.org/projects/grief-prevention
loadbefore: [TheUnderground]
version: '${git.commit.id.describe}'
api-version: '1.16'
api-version: '1.17'
commands:
abandonclaim:
description: Deletes a claim.