From 757a41f890660c8472a8fd373ec414f60bffaff7 Mon Sep 17 00:00:00 2001 From: Iaccidentally Date: Fri, 29 Mar 2013 22:20:54 -0400 Subject: [PATCH] [FIX] add itemframe support to remove --- .../earth2me/essentials/commands/Commandremove.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandremove.java b/Essentials/src/com/earth2me/essentials/commands/Commandremove.java index 0957a7989..67517b7c8 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandremove.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandremove.java @@ -25,7 +25,8 @@ public class Commandremove extends EssentialsCommand BOATS, MINECARTS, XP, - PAINTINGS + PAINTINGS, + ITEMFRAMES } @Override @@ -155,6 +156,14 @@ public class Commandremove extends EssentialsCommand removed++; } } + else if (toRemove == ToRemove.ITEMFRAMES) + { + if (e instanceof Painting) + { + e.remove(); + removed++; + } + } } } sender.sendMessage(_("removed", removed));