Make Artifact Equips invulnerable.
This commit is contained in:
parent
e9011cb476
commit
04be7ff32a
Binary file not shown.
@ -2547,6 +2547,11 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
||||
|
||||
@EventHandler(priority=EventPriority.LOW,ignoreCancelled = true)
|
||||
public void onPlayerDropItem(PlayerDropItemEvent ev) {
|
||||
|
||||
if (GenericFunctions.isArtifactEquip(ev.getItemDrop().getItemStack())) {
|
||||
ev.getItemDrop().setInvulnerable(true);
|
||||
}
|
||||
|
||||
if (ev.getItemDrop().getItemStack().hasItemMeta()) {
|
||||
if (ev.getItemDrop().getItemStack().getItemMeta().hasLore()) {
|
||||
if (ev.getItemDrop().getItemStack().getItemMeta().getLore().size()==4) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user