public MinecraftServer(File workDir, Proxy proxy, File profileCacheDir) { this.serverProxy = proxy; mcServer = this; this.anvilFile = workDir; this.networkSystem = new NetworkSystem(this); this.profileCache = new PlayerProfileCache(this, profileCacheDir); this.commandManager = this.createNewCommandManager(); this.anvilConverterForAnvilFile = new AnvilSaveConverter(workDir); this.authService = new YggdrasilAuthenticationService(proxy, UUID.randomUUID().toString()); this.sessionService = this.authService.createMinecraftSessionService(); this.profileRepo = this.authService.createProfileRepository(); }
public MinecraftServer(Proxy p_i46053_1_, File p_i46053_2_) { this.serverProxy = p_i46053_1_; mcServer = this; this.anvilFile = null; this.networkSystem = null; this.profileCache = new PlayerProfileCache(this, p_i46053_2_); this.commandManager = null; this.anvilConverterForAnvilFile = null; this.authService = new YggdrasilAuthenticationService(p_i46053_1_, UUID.randomUUID().toString()); this.sessionService = this.authService.createMinecraftSessionService(); this.profileRepo = this.authService.createProfileRepository(); }