Move class

This commit is contained in:
Jesse Boyd 2017-03-04 17:19:23 +11:00
parent 9e9339b9ab
commit cb2f9ebf11
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -19,6 +19,7 @@
package com.sk89q.worldedit.util.command; package com.sk89q.worldedit.util.command;
import com.boydti.fawe.util.StringMan;
import com.google.common.base.Joiner; import com.google.common.base.Joiner;
import com.sk89q.minecraft.util.commands.CommandContext; import com.sk89q.minecraft.util.commands.CommandContext;
import com.sk89q.minecraft.util.commands.CommandException; import com.sk89q.minecraft.util.commands.CommandException;
@ -61,8 +62,8 @@ public class SimpleDispatcher implements Dispatcher {
for (String a : alias) { for (String a : alias) {
String lower = a.toLowerCase(); String lower = a.toLowerCase();
if (commands.containsKey(lower)) { if (commands.containsKey(lower)) {
throw new IllegalArgumentException( System.out.println("Replacing commands is currently undefined behavior: " + StringMan.getString(alias));
"Replacing commands is currently undefined behavior"); return;
} }
} }