Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
chore: bump viaversion and viabackwards to 4.5.0-22w43a-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
rexlManu committed Oct 29, 2022
1 parent 297eb40 commit e2347ab
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ dependencies {
minecraft 'com.github.ImpactDevelopment:Vanilla:1.16.5'

shade("org.yaml:snakeyaml:1.28")
shade("com.viaversion:viaversion:4.3.2-SNAPSHOT") { transitive = false }
shade("com.viaversion:viabackwards:4.3.1-SNAPSHOT")
shade("com.viaversion:viaversion:4.5.0-22w43a-SNAPSHOT") { transitive = false }
shade("com.viaversion:viabackwards:4.5.0-22w43a-SNAPSHOT")
shade("com.viaversion:viarewind-fabric:2.0.3-SNAPSHOT")

compile(files(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
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 de.rexlmanu.viaversionaddon.ViaVersionAddon;
import de.rexlmanu.viaversionaddon.utility.FutureTaskId;
import io.netty.util.concurrent.Future;
import io.netty.util.concurrent.GenericFutureListener;
import java.util.Collection;
import lombok.Getter;

import java.io.File;
Expand Down Expand Up @@ -98,6 +101,11 @@ public boolean kickPlayer(UUID uuid, String s) {
return false;
}

@Override
public boolean disconnect(UserConnection connection, String message) {
return ViaPlatform.super.disconnect(connection, message);
}

@Override
public boolean isPluginEnabled() {
return true;
Expand Down Expand Up @@ -128,6 +136,16 @@ public boolean isOldClientsAllowed() {
return true;
}

@Override
public Collection<UnsupportedSoftware> getUnsupportedSoftwareClasses() {
return ViaPlatform.super.getUnsupportedSoftwareClasses();
}

@Override
public boolean hasPlugin(String name) {
return false;
}

private <T extends Future<?>> GenericFutureListener<T> errorLogger() {
return future -> {
if (!future.isCancelled() && future.cause() != null) {
Expand Down

0 comments on commit e2347ab

Please sign in to comment.