3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Clean up ConnectedPlayer initialization.

Dieser Commit ist enthalten in:
Andrew Steinborn 2018-08-24 21:30:58 -04:00
Ursprung 5389ec1baf
Commit bc2f3a7288

Datei anzeigen

@ -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 -> {