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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user