mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-29 15:49:09 +01:00
api stuff
This commit is contained in:
parent
7fccb0d69d
commit
b66631407b
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,7 @@ import com.nukkitx.protocol.bedrock.packet.StartGamePacket;
|
|||
import com.nukkitx.protocol.bedrock.packet.TextPacket;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.geysermc.api.Geyser;
|
||||
import org.geysermc.api.Player;
|
||||
import org.geysermc.api.RemoteServer;
|
||||
import org.geysermc.api.session.AuthData;
|
||||
|
@ -126,6 +127,7 @@ public class GeyserSession implements PlayerSession, Player {
|
|||
|
||||
public void authenticate(String username) {
|
||||
authenticate(username, "");
|
||||
Geyser.addPlayer(this);
|
||||
}
|
||||
|
||||
public void authenticate(String username, String password) {
|
||||
|
@ -204,6 +206,7 @@ public class GeyserSession implements PlayerSession, Player {
|
|||
@Override
|
||||
public void onDisconnect(String reason) {
|
||||
downstream.getSession().disconnect("Disconnected from server. Reason: " + reason);
|
||||
Geyser.removePlayer(this);
|
||||
}
|
||||
|
||||
public void setAuthenticationData(AuthData authData) {
|
||||
|
|
Loading…
Reference in a new issue