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

    Constructors
    Constructor
    Description
    ArgumentOnlinePlayer(@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

    Modifier and Type
    Method
    Description
    boolean
     
    com.velocitypowered.api.proxy.Player
    parse(@NotNull String command, @NotNull String input)
     
    @NotNull List<com.velocitypowered.api.proxy.Player>
     
    toString(com.velocitypowered.api.proxy.Player obj)
     

    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

      @NotNull public @NotNull List<com.velocitypowered.api.proxy.Player> suggestions()
      Specified by:
      suggestions in interface io.github.mqzn.commands.arguments.Argument<com.velocitypowered.api.proxy.Player>
      Overrides:
      suggestions in class io.github.mqzn.commands.arguments.AbstractArgument<com.velocitypowered.api.proxy.Player>
    • isSuggestionDynamic

      public boolean isSuggestionDynamic()
    • toString

      public String toString(com.velocitypowered.api.proxy.Player obj)
      Specified by:
      toString in interface io.github.mqzn.commands.arguments.Argument<com.velocitypowered.api.proxy.Player>
      Overrides:
      toString in class io.github.mqzn.commands.arguments.AbstractArgument<com.velocitypowered.api.proxy.Player>