Add missing param in /remove

This commit is contained in:
KHobbits 2013-07-15 02:33:15 +01:00
parent 1f3e52a4b9
commit f6f71126a1
5 changed files with 21 additions and 5 deletions

View file

@ -26,7 +26,8 @@ public class Commandremove extends EssentialsCommand
MINECARTS,
XP,
PAINTINGS,
ITEMFRAMES
ITEMFRAMES,
ENDERCRYSTALS
}
@Override
@ -178,6 +179,14 @@ public class Commandremove extends EssentialsCommand
removed++;
}
}
else if (toRemove == ToRemove.ENDERCRYSTALS)
{
if (e instanceof EnderCrystal)
{
e.remove();
removed++;
}
}
}
}
sender.sendMessage(_("removed", removed));