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:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user