Class UUIDBungeeCordStrategy
java.lang.Object
com.janboerman.invsee.spigot.api.resolve.UUIDBungeeCordStrategy
- All Implemented Interfaces:
UUIDResolveStrategy
,PluginMessageListener
public class UUIDBungeeCordStrategy
extends Object
implements UUIDResolveStrategy, PluginMessageListener
Strategy which resolves Unique IDs using BungeeCord's plugin messaging channel.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onPluginMessageReceived
(String channel, Player player, byte[] message) resolveUniqueId
(String userName) Resolve the player's Unique ID.
-
Constructor Details
-
UUIDBungeeCordStrategy
-
-
Method Details
-
resolveUniqueId
Description copied from interface:UUIDResolveStrategy
Resolve the player's Unique ID.- Specified by:
resolveUniqueId
in interfaceUUIDResolveStrategy
- Parameters:
userName
- the player's username- Returns:
- a future which, when completed, will supply the player's Unique ID optionally, if it could be found.
-
onPluginMessageReceived
- Specified by:
onPluginMessageReceived
in interfacePluginMessageListener
-