Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-23 23:00:35 +01:00
Clean up ConnectedPlayer initialization.
Dieser Commit ist enthalten in:
Ursprung
5389ec1baf
Commit
bc2f3a7288
@ -164,8 +164,8 @@ public class LoginSessionHandler implements MinecraftSessionHandler {
|
||||
|
||||
VelocityServer.getServer().getEventManager().fire(profileRequestEvent).thenCompose(profileEvent -> {
|
||||
// Initiate a regular connection and move over to it.
|
||||
ConnectedPlayer player = new ConnectedPlayer(profileEvent.getGameProfile() == null ? profile : profileEvent.getGameProfile(),
|
||||
inbound, apiInbound.getVirtualHost().orElse(null));
|
||||
ConnectedPlayer player = new ConnectedPlayer(profileEvent.getGameProfile(), inbound,
|
||||
apiInbound.getVirtualHost().orElse(null));
|
||||
|
||||
return VelocityServer.getServer().getEventManager().fire(new PermissionsSetupEvent(player, ConnectedPlayer.DEFAULT_PERMISSIONS))
|
||||
.thenCompose(event -> {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren