1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00

Close remote java connection when bedrock player leaves.

This commit is contained in:
SupremeMortal
2019-09-13 14:37:31 +01:00
parent 9a9f67b45f
commit ab55050d11
4 changed files with 29 additions and 4 deletions

View File

@@ -29,6 +29,8 @@ import org.geysermc.api.command.CommandSender;
import org.geysermc.api.session.AuthData;
import org.geysermc.api.window.FormWindow;
import java.net.InetSocketAddress;
public interface Player extends CommandSender {
/**
@@ -68,4 +70,11 @@ public interface Player extends CommandSender {
* @param id the id of the window
*/
void sendForm(FormWindow window, int id);
/**
* Returns the current hostname and port the player is connected with.
*
* @return player's socket address.
*/
InetSocketAddress getSocketAddress();
}