mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-21 05:51:56 +02:00
[FIX] add itemframe support to remove
This commit is contained in:
@@ -25,7 +25,8 @@ public class Commandremove extends EssentialsCommand
|
|||||||
BOATS,
|
BOATS,
|
||||||
MINECARTS,
|
MINECARTS,
|
||||||
XP,
|
XP,
|
||||||
PAINTINGS
|
PAINTINGS,
|
||||||
|
ITEMFRAMES
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -155,6 +156,14 @@ public class Commandremove extends EssentialsCommand
|
|||||||
removed++;
|
removed++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (toRemove == ToRemove.ITEMFRAMES)
|
||||||
|
{
|
||||||
|
if (e instanceof Painting)
|
||||||
|
{
|
||||||
|
e.remove();
|
||||||
|
removed++;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sender.sendMessage(_("removed", removed));
|
sender.sendMessage(_("removed", removed));
|
||||||
|
Reference in New Issue
Block a user