mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-02 11:11:58 +01:00
[FIX] add itemframe support to remove
This commit is contained in:
parent
8427b41e30
commit
757a41f890
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user