geforkt von Mirrors/Velocity
Yes there's some unneeded qualification in here
Dieser Commit ist enthalten in:
Ursprung
c9af231c7e
Commit
01f158f193
@ -47,7 +47,7 @@ import static com.velocitypowered.network.Connections.MINECRAFT_ENCODER;
|
||||
import static com.velocitypowered.network.Connections.READ_TIMEOUT;
|
||||
|
||||
public final class ConnectionManager {
|
||||
private static final org.apache.logging.log4j.Logger logger = LogManager.getLogger(ConnectionManager.class);
|
||||
private static final Logger logger = LogManager.getLogger(ConnectionManager.class);
|
||||
|
||||
private static final String DISABLE_EPOLL_PROPERTY = "velocity.connection.disable-epoll";
|
||||
private static final boolean DISABLE_EPOLL = Boolean.getBoolean(DISABLE_EPOLL_PROPERTY);
|
||||
|
@ -8,11 +8,14 @@ import com.velocitypowered.proxy.util.EncryptionUtils;
|
||||
import io.netty.bootstrap.Bootstrap;
|
||||
import net.kyori.text.Component;
|
||||
import net.kyori.text.serializer.GsonComponentSerializer;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import java.net.InetSocketAddress;
|
||||
import java.security.KeyPair;
|
||||
|
||||
public class VelocityServer {
|
||||
private static final Logger logger = LogManager.getLogger(VelocityServer.class);
|
||||
private static final VelocityServer INSTANCE = new VelocityServer();
|
||||
public static final Gson GSON = new GsonBuilder()
|
||||
.registerTypeHierarchyAdapter(Component.class, new GsonComponentSerializer())
|
||||
@ -35,6 +38,7 @@ public class VelocityServer {
|
||||
|
||||
public void start() {
|
||||
// Create a key pair
|
||||
logger.info("Booting up Velocity...");
|
||||
serverKeyPair = EncryptionUtils.createRsaKeyPair(1024);
|
||||
|
||||
httpClient = new NettyHttpClient(this);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren