Package io.github.mqzn.arguments
Class ArgumentOnlinePlayer
java.lang.Object
io.github.mqzn.commands.arguments.AbstractArgument<com.velocitypowered.api.proxy.Player>
io.github.mqzn.arguments.ArgumentOnlinePlayer
- All Implemented Interfaces:
io.github.mqzn.commands.arguments.Argument<com.velocitypowered.api.proxy.Player>
public final class ArgumentOnlinePlayer
extends io.github.mqzn.commands.arguments.AbstractArgument<com.velocitypowered.api.proxy.Player>
-
Field Summary
Fields inherited from class io.github.mqzn.commands.arguments.AbstractArgument
suggestions
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentOnlinePlayer
(@NotNull com.velocitypowered.api.proxy.ProxyServer server, @NotNull io.github.mqzn.commands.arguments.ArgumentData data) ArgumentOnlinePlayer
(@NotNull com.velocitypowered.api.proxy.ProxyServer server, @NotNull String id) -
Method Summary
Methods inherited from class io.github.mqzn.commands.arguments.AbstractArgument
asOptional, defaultValue, description, description, equals, hashCode, id, isOptional, setDefaultValue, setOptional, suggest, suggest, type, useRemainingSpace
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.mqzn.commands.arguments.Argument
alternativeTypes
-
Constructor Details
-
ArgumentOnlinePlayer
public ArgumentOnlinePlayer(@NotNull @NotNull com.velocitypowered.api.proxy.ProxyServer server, @NotNull @NotNull String id) -
ArgumentOnlinePlayer
public ArgumentOnlinePlayer(@NotNull @NotNull com.velocitypowered.api.proxy.ProxyServer server, @NotNull @NotNull io.github.mqzn.commands.arguments.ArgumentData data)
-
-
Method Details
-
parse
public com.velocitypowered.api.proxy.Player parse(@NotNull @NotNull String command, @NotNull @NotNull String input) throws io.github.mqzn.commands.exceptions.types.ArgumentParseException - Throws:
io.github.mqzn.commands.exceptions.types.ArgumentParseException
-
suggestions
- Specified by:
suggestions
in interfaceio.github.mqzn.commands.arguments.Argument<com.velocitypowered.api.proxy.Player>
- Overrides:
suggestions
in classio.github.mqzn.commands.arguments.AbstractArgument<com.velocitypowered.api.proxy.Player>
-
isSuggestionDynamic
public boolean isSuggestionDynamic() -
toString
- Specified by:
toString
in interfaceio.github.mqzn.commands.arguments.Argument<com.velocitypowered.api.proxy.Player>
- Overrides:
toString
in classio.github.mqzn.commands.arguments.AbstractArgument<com.velocitypowered.api.proxy.Player>
-