[FIX] add itemframe support to remove

This commit is contained in:
Iaccidentally 2013-03-29 22:20:54 -04:00
parent 8427b41e30
commit 757a41f890

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