Now you can say /mvpurge pig rather than /mvpurge PIG

This commit is contained in:
Eric Stokes 2011-06-30 17:45:49 -06:00
parent 6858c878d3
commit f7ded5f129

View File

@ -59,7 +59,7 @@ public class PurgeCommand extends BaseCommand {
if(deathName.equalsIgnoreCase("all") || deathName.equalsIgnoreCase("animals") || deathName.equalsIgnoreCase("monsters")) {
thingsToKill.add(deathName.toUpperCase());
} else {
Collections.addAll(thingsToKill, deathName.split(","));
Collections.addAll(thingsToKill, deathName.toUpperCase().split(","));
}
purger.purgeWorld(sender, world, thingsToKill, false, false);