public final class PlayerParameterType extends java.lang.Object implements revxrsal.commands.parameter.ParameterType<VelocityCommandActor,com.velocitypowered.api.proxy.Player>
Player types.
If the player inputs me or self or @s, the parser will
return the executing player (or give an error if the sender is not a player)
| Constructor and Description |
|---|
PlayerParameterType(@NotNull com.velocitypowered.api.proxy.ProxyServer server) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull revxrsal.commands.autocomplete.SuggestionProvider<VelocityCommandActor> |
defaultSuggestions() |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
com.velocitypowered.api.proxy.Player |
parse(@NotNull revxrsal.commands.stream.MutableStringStream input,
@NotNull revxrsal.commands.node.ExecutionContext<VelocityCommandActor> context) |
@NotNull com.velocitypowered.api.proxy.ProxyServer |
server() |
java.lang.String |
toString() |
public PlayerParameterType(@NotNull
@NotNull com.velocitypowered.api.proxy.ProxyServer server)
public com.velocitypowered.api.proxy.Player parse(@NotNull
@NotNull revxrsal.commands.stream.MutableStringStream input,
@NotNull
@NotNull revxrsal.commands.node.ExecutionContext<VelocityCommandActor> context)
parse in interface revxrsal.commands.parameter.ParameterType<VelocityCommandActor,com.velocitypowered.api.proxy.Player>@NotNull public @NotNull revxrsal.commands.autocomplete.SuggestionProvider<VelocityCommandActor> defaultSuggestions()
defaultSuggestions in interface revxrsal.commands.parameter.ParameterType<VelocityCommandActor,com.velocitypowered.api.proxy.Player>@NotNull public @NotNull com.velocitypowered.api.proxy.ProxyServer server()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object