public class SpongeCommand
extends java.lang.Object
implements org.spongepowered.api.command.CommandCallable
Constructor and Description |
---|
SpongeCommand(com.djrapitops.plugin.task.RunnableFactory runnableFactory,
ErrorLogger errorLogger,
Subcommand command) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<org.spongepowered.api.text.Text> |
getHelp(org.spongepowered.api.command.CommandSource source) |
java.util.Optional<org.spongepowered.api.text.Text> |
getShortDescription(org.spongepowered.api.command.CommandSource source) |
java.util.List<java.lang.String> |
getSuggestions(org.spongepowered.api.command.CommandSource source,
java.lang.String arguments,
org.spongepowered.api.world.Location<org.spongepowered.api.world.World> targetPosition) |
org.spongepowered.api.text.Text |
getUsage(org.spongepowered.api.command.CommandSource source) |
org.spongepowered.api.command.CommandResult |
process(org.spongepowered.api.command.CommandSource source,
java.lang.String arguments) |
boolean |
testPermission(org.spongepowered.api.command.CommandSource source) |
public SpongeCommand(com.djrapitops.plugin.task.RunnableFactory runnableFactory, ErrorLogger errorLogger, Subcommand command)
public org.spongepowered.api.command.CommandResult process(org.spongepowered.api.command.CommandSource source, java.lang.String arguments)
process
in interface org.spongepowered.api.command.CommandCallable
public java.util.List<java.lang.String> getSuggestions(org.spongepowered.api.command.CommandSource source, java.lang.String arguments, @Nullable org.spongepowered.api.world.Location<org.spongepowered.api.world.World> targetPosition)
getSuggestions
in interface org.spongepowered.api.command.CommandCallable
public boolean testPermission(org.spongepowered.api.command.CommandSource source)
testPermission
in interface org.spongepowered.api.command.CommandCallable
public java.util.Optional<org.spongepowered.api.text.Text> getShortDescription(org.spongepowered.api.command.CommandSource source)
getShortDescription
in interface org.spongepowered.api.command.CommandCallable
public java.util.Optional<org.spongepowered.api.text.Text> getHelp(org.spongepowered.api.command.CommandSource source)
getHelp
in interface org.spongepowered.api.command.CommandCallable
public org.spongepowered.api.text.Text getUsage(org.spongepowered.api.command.CommandSource source)
getUsage
in interface org.spongepowered.api.command.CommandCallable