mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-08 10:09:36 +01:00
Added 1.19.1-1.19.2 support and upgrade dependencies
This commit is contained in:
parent
eb818ea399
commit
ef6adcac49
@ -15,5 +15,5 @@ mod_base_package=de.enzaxd
|
||||
|
||||
mixin_version=0.8.3
|
||||
|
||||
viaversion_version=4.3.2-SNAPSHOT
|
||||
viabackwards_version=4.3.1-SNAPSHOT
|
||||
viaversion_version=4.4.2
|
||||
viabackwards_version=4.4.2
|
||||
|
@ -3,7 +3,9 @@ package de.enzaxd.viaforge.platform;
|
||||
import com.viaversion.viaversion.api.command.ViaCommandSender;
|
||||
import com.viaversion.viaversion.api.configuration.ConfigurationProvider;
|
||||
import com.viaversion.viaversion.api.configuration.ViaVersionConfig;
|
||||
import com.viaversion.viaversion.api.connection.UserConnection;
|
||||
import com.viaversion.viaversion.api.platform.PlatformTask;
|
||||
import com.viaversion.viaversion.api.platform.UnsupportedSoftware;
|
||||
import com.viaversion.viaversion.api.platform.ViaPlatform;
|
||||
import com.viaversion.viaversion.libs.gson.JsonObject;
|
||||
import com.viaversion.viaversion.libs.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
|
||||
@ -17,6 +19,7 @@ import org.apache.logging.log4j.LogManager;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Path;
|
||||
import java.util.Collection;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CancellationException;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
@ -57,6 +60,11 @@ public class Platform implements ViaPlatform<UUID> {
|
||||
return ViaForge.SHARED_VERSION+"";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isProxy() {
|
||||
return ViaPlatform.super.isProxy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPluginVersion() {
|
||||
return "4.0.0";
|
||||
@ -118,6 +126,11 @@ public class Platform implements ViaPlatform<UUID> {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean disconnect(UserConnection connection, String message) {
|
||||
return ViaPlatform.super.disconnect(connection, message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isPluginEnabled() {
|
||||
return true;
|
||||
@ -157,4 +170,14 @@ public class Platform implements ViaPlatform<UUID> {
|
||||
public boolean isOldClientsAllowed() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Collection<UnsupportedSoftware> getUnsupportedSoftwareClasses() {
|
||||
return ViaPlatform.super.getUnsupportedSoftwareClasses();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPlugin(String name) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -3,9 +3,9 @@ package de.enzaxd.viaforge.protocol;
|
||||
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
|
||||
|
||||
public enum ProtocolCollection {
|
||||
|
||||
R1_19_2(new ProtocolVersion(760, "1.19.1-1.19.2")),
|
||||
R1_19(new ProtocolVersion(759, "1.19")),
|
||||
|
||||
|
||||
R1_18_2(new ProtocolVersion(758, "1.18.2")),
|
||||
R1_18_1(new ProtocolVersion(757, "1.18-1.18.1")),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user