Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
remove velocityconnectionmanager
Dieser Commit ist enthalten in:
Ursprung
b1e60f5f1b
Commit
485f4fa070
@ -46,7 +46,7 @@ public class ViaConnectionManager {
|
||||
* UUIDs can't be duplicate between frontend connections.
|
||||
*/
|
||||
public boolean isFrontEnd(UserConnection conn) {
|
||||
return true;
|
||||
return !conn.isClientSide();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -69,7 +69,7 @@ public class VelocityPlugin implements ViaPlatform<Player> {
|
||||
api = new VelocityViaAPI();
|
||||
conf = new VelocityViaConfig(configDir.toFile());
|
||||
logger = new LoggerWrapper(loggerslf4j);
|
||||
connectionManager = new VelocityConnectionManager();
|
||||
connectionManager = new ViaConnectionManager();
|
||||
Via.init(ViaManager.builder()
|
||||
.platform(this)
|
||||
.commandHandler(commandHandler)
|
||||
|
@ -1,11 +0,0 @@
|
||||
package us.myles.ViaVersion.velocity.platform;
|
||||
|
||||
import us.myles.ViaVersion.api.data.UserConnection;
|
||||
import us.myles.ViaVersion.api.platform.ViaConnectionManager;
|
||||
|
||||
public class VelocityConnectionManager extends ViaConnectionManager {
|
||||
@Override
|
||||
public boolean isFrontEnd(UserConnection conn) {
|
||||
return !conn.isClientSide();
|
||||
}
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren