3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 10:30:04 +01:00

Removed CommandCallable.getValueFlags().

Parsing of arguments is no longer done automatically so this method
is extraneous.
Dieser Commit ist enthalten in:
sk89q 2014-07-01 12:56:27 -07:00
Ursprung f3fe8f2ad8
Commit 1b0a6bfcd8
3 geänderte Dateien mit 5 neuen und 14 gelöschten Zeilen

Datei anzeigen

@ -23,19 +23,11 @@ import com.sk89q.minecraft.util.commands.CommandException;
import com.sk89q.minecraft.util.commands.CommandLocals;
import java.util.List;
import java.util.Set;
/**
* A command that can be executed.
*/
public interface CommandCallable {
/**
* Get a list of value flags used by this command.
*
* @return a list of value flags
*/
Set<Character> getValueFlags();
/**
* Execute the correct command based on the input.

Datei anzeigen

@ -101,11 +101,6 @@ public class SimpleDispatcher implements Dispatcher {
return commands.get(alias.toLowerCase());
}
@Override
public Set<Character> getValueFlags() {
return Collections.emptySet();
}
@Override
public boolean call(String arguments, CommandLocals locals, String[] parentCommands) throws CommandException {
// We have permission for this command if we have permissions for subcommands

Datei anzeigen

@ -273,7 +273,11 @@ class ParametricCallable implements CommandCallable {
return Collections.emptyList();
}
@Override
/**
* Get a list of value flags used by this command.
*
* @return a list of value flags
*/
public Set<Character> getValueFlags() {
return valueFlags;
}