Added 'xp' as a parameter of the /remove command to remove experience orbs.

This commit is contained in:
Wizjany
2011-09-17 01:33:42 -04:00
parent d6ed17dd9d
commit b10498b9c7
3 changed files with 10 additions and 1 deletions

View File

@ -404,8 +404,10 @@ public class UtilityCommands {
type = EntityType.MINECARTS;
} else if (typeStr.matches("tnt")) {
type = EntityType.TNT;
} else if (typeStr.matches("xp")) {
type = EntityType.XP_ORBS;
} else {
player.printError("Acceptable types: arrows, items, paintings, boats, minecarts, tnt");
player.printError("Acceptable types: arrows, items, paintings, boats, minecarts, tnt, xp");
return;
}