summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIaccidentally <coryhuckaby@gmail.com>2013-03-29 22:20:54 -0400
committerIaccidentally <coryhuckaby@gmail.com>2013-03-29 22:20:54 -0400
commit81e53662c60df56a45bde09abc726eab1937f64a (patch)
treed47e41748cecd11f3c18b49e295d3a4402918745
parentab1d6c0aba834ce32f1abddad327bf35c840009e (diff)
downloadEssentials-81e53662c60df56a45bde09abc726eab1937f64a.tar
Essentials-81e53662c60df56a45bde09abc726eab1937f64a.tar.gz
Essentials-81e53662c60df56a45bde09abc726eab1937f64a.tar.lz
Essentials-81e53662c60df56a45bde09abc726eab1937f64a.tar.xz
Essentials-81e53662c60df56a45bde09abc726eab1937f64a.zip
[FIX] add itemframe support to remove
-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));