1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Merge remote-tracking branch 'origin/feature/transfer-players'

This commit is contained in:
Tim203
2021-09-24 20:29:16 +02:00
6 changed files with 118 additions and 0 deletions

View File

@@ -95,6 +95,8 @@ public interface FloodgateApi {
boolean sendForm(UUID uuid, FormBuilder<?, ?> formBuilder);
boolean transferPlayer(UUID uuid, String address, int port);
/**
* Get the xuid of the user that has the given gamertag.
*

View File

@@ -119,6 +119,10 @@ public interface FloodgatePlayer {
return sendForm(formBuilder.build());
}
default boolean transfer(String address, int port) {
return FloodgateApi.getInstance().transferPlayer(getCorrectUniqueId(), address, port);
}
boolean hasProperty(PropertyKey key);
boolean hasProperty(String key);