From 4919b8748ad061e666c5a84e29235168464b54c0 Mon Sep 17 00:00:00 2001 From: Matsv Date: Sun, 22 Jul 2018 23:15:59 +0200 Subject: [PATCH] Preparations for 1.13 support development --- all/pom.xml | 2 +- bukkit/pom.xml | 4 +-- bungee/pom.xml | 4 +-- core/pom.xml | 2 +- .../api/ViaBackwardsPlatform.java | 2 ++ .../Protocol1_12_2To1_12.java | 26 +++++++++++++++++++ pom.xml | 4 +-- sponge/pom.xml | 2 +- 8 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/Protocol1_12_2To1_12.java diff --git a/all/pom.xml b/all/pom.xml index c9c3556b..7db043b3 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -15,7 +15,7 @@ viabackwards-parent nl.matsv - 2.3.1 + 2.4.0-SNAPSHOT 4.0.0 diff --git a/bukkit/pom.xml b/bukkit/pom.xml index c46d0199..91da18e2 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -15,7 +15,7 @@ viabackwards-parent nl.matsv - 2.3.1 + 2.4.0-SNAPSHOT 4.0.0 @@ -32,7 +32,7 @@ org.spigotmc spigot-api - 1.11-R0.1-SNAPSHOT + 1.13-R0.1-SNAPSHOT provided diff --git a/bungee/pom.xml b/bungee/pom.xml index 13339a85..510c7df9 100644 --- a/bungee/pom.xml +++ b/bungee/pom.xml @@ -15,7 +15,7 @@ viabackwards-parent nl.matsv - 2.3.1 + 2.4.0-SNAPSHOT 4.0.0 @@ -34,7 +34,7 @@ net.md-5 bungeecord-api - 1.11-SNAPSHOT + 1.13-SNAPSHOT provided diff --git a/core/pom.xml b/core/pom.xml index e2b66db6..265ab1a0 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -15,7 +15,7 @@ viabackwards-parent nl.matsv - 2.3.1 + 2.4.0-SNAPSHOT 4.0.0 diff --git a/core/src/main/java/nl/matsv/viabackwards/api/ViaBackwardsPlatform.java b/core/src/main/java/nl/matsv/viabackwards/api/ViaBackwardsPlatform.java index 3bbddc28..9bcdf819 100644 --- a/core/src/main/java/nl/matsv/viabackwards/api/ViaBackwardsPlatform.java +++ b/core/src/main/java/nl/matsv/viabackwards/api/ViaBackwardsPlatform.java @@ -19,6 +19,7 @@ import nl.matsv.viabackwards.protocol.protocol1_12to1_12_1.Protocol1_12To1_12_1; import nl.matsv.viabackwards.protocol.protocol1_9_4to1_10.Protocol1_9_4To1_10; import us.myles.ViaVersion.api.protocol.ProtocolRegistry; import us.myles.ViaVersion.api.protocol.ProtocolVersion; +import us.myles.ViaVersion.protocols.protocol1_13to1_12_2.Protocol1_13To1_12_2; import java.lang.reflect.Field; import java.util.Collections; @@ -38,6 +39,7 @@ public interface ViaBackwardsPlatform { ProtocolRegistry.registerProtocol(new Protocol1_11_1To1_12(), Collections.singletonList(ProtocolVersion.v1_11_1.getId()), ProtocolVersion.v1_12.getId()); ProtocolRegistry.registerProtocol(new Protocol1_12To1_12_1(), Collections.singletonList(ProtocolVersion.v1_12.getId()), ProtocolVersion.v1_12_1.getId()); ProtocolRegistry.registerProtocol(new Protocol1_12_1To1_12_2(), Collections.singletonList(ProtocolVersion.v1_12_1.getId()), ProtocolVersion.v1_12_2.getId()); + ProtocolRegistry.registerProtocol(new Protocol1_13To1_12_2(), Collections.singletonList(ProtocolVersion.v1_12_2.getId()), ProtocolVersion.v1_13.getId()); } } diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/Protocol1_12_2To1_12.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/Protocol1_12_2To1_12.java new file mode 100644 index 00000000..e594313b --- /dev/null +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/Protocol1_12_2To1_12.java @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2016 Matsv + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +package nl.matsv.viabackwards.protocol.protocol1_12_2to1_13; + +import nl.matsv.viabackwards.api.BackwardsProtocol; +import us.myles.ViaVersion.api.data.UserConnection; + +public class Protocol1_12_2To1_12 extends BackwardsProtocol { + @Override + protected void registerPackets() { + + } + + @Override + public void init(UserConnection userConnection) { + + } +} diff --git a/pom.xml b/pom.xml index 54cbd6c2..37264eec 100644 --- a/pom.xml +++ b/pom.xml @@ -16,7 +16,7 @@ nl.matsv viabackwards-parent - 2.3.1 + 2.4.0-SNAPSHOT pom Allow newer clients to join older server versions. @@ -65,7 +65,7 @@ us.myles viaversion - 1.3.0 + 1.4.1 provided diff --git a/sponge/pom.xml b/sponge/pom.xml index f7ececb2..f2c67031 100644 --- a/sponge/pom.xml +++ b/sponge/pom.xml @@ -15,7 +15,7 @@ viabackwards-parent nl.matsv - 2.3.1 + 2.4.0-SNAPSHOT 4.0.0