public final class OfflinePlayerParameterType extends java.lang.Object implements revxrsal.commands.parameter.ParameterType<BukkitCommandActor,org.bukkit.OfflinePlayer>
OfflinePlayer types
If the player inputs me or self, the parser will return the
executing player (or give an error if the sender is not a player)
| Constructor and Description |
|---|
OfflinePlayerParameterType(boolean brigadierEnabled) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull revxrsal.commands.autocomplete.SuggestionProvider<BukkitCommandActor> |
defaultSuggestions() |
org.bukkit.OfflinePlayer |
parse(@NotNull revxrsal.commands.stream.MutableStringStream input,
@NotNull revxrsal.commands.node.ExecutionContext<BukkitCommandActor> context) |
public OfflinePlayerParameterType(boolean brigadierEnabled)
public org.bukkit.OfflinePlayer parse(@NotNull
@NotNull revxrsal.commands.stream.MutableStringStream input,
@NotNull
@NotNull revxrsal.commands.node.ExecutionContext<BukkitCommandActor> context)
parse in interface revxrsal.commands.parameter.ParameterType<BukkitCommandActor,org.bukkit.OfflinePlayer>@NotNull public @NotNull revxrsal.commands.autocomplete.SuggestionProvider<BukkitCommandActor> defaultSuggestions()
defaultSuggestions in interface revxrsal.commands.parameter.ParameterType<BukkitCommandActor,org.bukkit.OfflinePlayer>