Package dev.booky.cloudutilities.util
Class PlayerArguments
java.lang.Object
dev.booky.cloudutilities.util.PlayerArguments
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.velocitypowered.api.proxy.PlayergetPlayer(com.velocitypowered.api.proxy.ProxyServer server, com.mojang.brigadier.context.CommandContext<?> ctx, String name) static com.velocitypowered.api.proxy.Playerstatic com.mojang.brigadier.suggestion.SuggestionProvider<com.velocitypowered.api.command.CommandSource> playerSuggestions(com.velocitypowered.api.proxy.ProxyServer server)
-
Method Details
-
playerSuggestions
public static com.mojang.brigadier.suggestion.SuggestionProvider<com.velocitypowered.api.command.CommandSource> playerSuggestions(com.velocitypowered.api.proxy.ProxyServer server) -
getPlayer
public static com.velocitypowered.api.proxy.Player getPlayer(com.velocitypowered.api.proxy.ProxyServer server, com.mojang.brigadier.context.CommandContext<?> ctx, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
parse
public static com.velocitypowered.api.proxy.Player parse(com.velocitypowered.api.proxy.ProxyServer server, String input) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-