1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-18 20:41:37 +02:00

[FIX] add itemframe support to remove

This commit is contained in:
Iaccidentally
2013-03-29 22:20:54 -04:00
parent 247dc769d0
commit 1792c76a12

View File

@@ -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));