summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandremove.java11
1 files changed, 10 insertions, 1 deletions
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));