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
No known key found for this signature in database
GPG key ID: DDBB25F8EE4FA29A
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();
}