mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Close remote java connection when bedrock player leaves.
This commit is contained in:
parent
9a9f67b45f
commit
ab55050d11
4 changed files with 29 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue