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
commit1792c76a125677b896f4acb331ce3e6bb531cfc5 (patch)
treea632c647b87a33b0c9b2dbe6b1ca291ce334b0b3
parent247dc769d01c575382110aa787680007060456e3 (diff)
downloadEssentials-1792c76a125677b896f4acb331ce3e6bb531cfc5.tar
Essentials-1792c76a125677b896f4acb331ce3e6bb531cfc5.tar.gz
Essentials-1792c76a125677b896f4acb331ce3e6bb531cfc5.tar.lz
Essentials-1792c76a125677b896f4acb331ce3e6bb531cfc5.tar.xz
Essentials-1792c76a125677b896f4acb331ce3e6bb531cfc5.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));