mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Removed CommandCallable.getValueFlags().
Parsing of arguments is no longer done automatically so this method is extraneous.
This commit is contained in:
parent
f3fe8f2ad8
commit
1b0a6bfcd8
@ -23,19 +23,11 @@ import com.sk89q.minecraft.util.commands.CommandException;
|
|||||||
import com.sk89q.minecraft.util.commands.CommandLocals;
|
import com.sk89q.minecraft.util.commands.CommandLocals;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A command that can be executed.
|
* A command that can be executed.
|
||||||
*/
|
*/
|
||||||
public interface CommandCallable {
|
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.
|
* Execute the correct command based on the input.
|
||||||
|
@ -101,11 +101,6 @@ public class SimpleDispatcher implements Dispatcher {
|
|||||||
return commands.get(alias.toLowerCase());
|
return commands.get(alias.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Set<Character> getValueFlags() {
|
|
||||||
return Collections.emptySet();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean call(String arguments, CommandLocals locals, String[] parentCommands) throws CommandException {
|
public boolean call(String arguments, CommandLocals locals, String[] parentCommands) throws CommandException {
|
||||||
// We have permission for this command if we have permissions for subcommands
|
// We have permission for this command if we have permissions for subcommands
|
||||||
|
@ -273,7 +273,11 @@ class ParametricCallable implements CommandCallable {
|
|||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
|
* Get a list of value flags used by this command.
|
||||||
|
*
|
||||||
|
* @return a list of value flags
|
||||||
|
*/
|
||||||
public Set<Character> getValueFlags() {
|
public Set<Character> getValueFlags() {
|
||||||
return valueFlags;
|
return valueFlags;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user