mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-09-16 09:37:37 +02:00
Now you can say /mvpurge pig rather than /mvpurge PIG
This commit is contained in:
parent
6858c878d3
commit
f7ded5f129
@ -59,7 +59,7 @@ public class PurgeCommand extends BaseCommand {
|
|||||||
if(deathName.equalsIgnoreCase("all") || deathName.equalsIgnoreCase("animals") || deathName.equalsIgnoreCase("monsters")) {
|
if(deathName.equalsIgnoreCase("all") || deathName.equalsIgnoreCase("animals") || deathName.equalsIgnoreCase("monsters")) {
|
||||||
thingsToKill.add(deathName.toUpperCase());
|
thingsToKill.add(deathName.toUpperCase());
|
||||||
} else {
|
} else {
|
||||||
Collections.addAll(thingsToKill, deathName.split(","));
|
Collections.addAll(thingsToKill, deathName.toUpperCase().split(","));
|
||||||
}
|
}
|
||||||
purger.purgeWorld(sender, world, thingsToKill, false, false);
|
purger.purgeWorld(sender, world, thingsToKill, false, false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user