diff options
author | Iaccidentally <coryhuckaby@gmail.com> | 2013-03-29 22:20:54 -0400 |
---|---|---|
committer | Iaccidentally <coryhuckaby@gmail.com> | 2013-03-29 22:20:54 -0400 |
commit | 81e53662c60df56a45bde09abc726eab1937f64a (patch) | |
tree | d47e41748cecd11f3c18b49e295d3a4402918745 | |
parent | ab1d6c0aba834ce32f1abddad327bf35c840009e (diff) | |
download | Essentials-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.java | 11 |
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)); |