Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ViaVersion/ViaAprilFools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.2
Choose a base ref
...
head repository: ViaVersion/ViaAprilFools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Oct 14, 2024

  1. Copy the full SHA
    f884014 View commit details

Commits on Oct 25, 2024

  1. Copy the full SHA
    51f7a5d View commit details
  2. Update VV API usage

    FlorianMichael committed Oct 25, 2024
    Copy the full SHA
    b54e99f View commit details
  3. Release 3.0.3

    RaphiMC committed Oct 25, 2024
    Copy the full SHA
    58aed00 View commit details
  4. Copy the full SHA
    6667a26 View commit details

Commits on Oct 28, 2024

  1. Copy the full SHA
    b330440 View commit details
  2. Cleanup

    FlorianMichael committed Oct 28, 2024
    Copy the full SHA
    6fd7b8c View commit details

Commits on Oct 29, 2024

  1. Copy the full SHA
    b1afee8 View commit details

Commits on Oct 30, 2024

  1. Copy the full SHA
    a1f1356 View commit details

Commits on Nov 1, 2024

  1. Release 3.0.4

    RaphiMC committed Nov 1, 2024
    Copy the full SHA
    635fa13 View commit details
  2. Copy the full SHA
    d1a0fe9 View commit details

Commits on Nov 4, 2024

  1. Updated dependabot.yml

    RaphiMC committed Nov 4, 2024
    Copy the full SHA
    9c11fe9 View commit details
  2. Bump io.netty:netty-handler in /common (#51)

    Bumps [io.netty:netty-handler](https://github.com/netty/netty) from 4.1.111.Final to 4.1.114.Final.
    - [Commits](netty/netty@netty-4.1.111.Final...netty-4.1.114.Final)
    
    ---
    updated-dependencies:
    - dependency-name: io.netty:netty-handler
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 4, 2024
    Copy the full SHA
    ee9a622 View commit details
  3. Bump net.raphimc.class-token-replacer from 1.1.2 to 1.1.3 in /common (#…

    …49)
    
    Bumps net.raphimc.class-token-replacer from 1.1.2 to 1.1.3.
    
    ---
    updated-dependencies:
    - dependency-name: net.raphimc.class-token-replacer
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 4, 2024
    Copy the full SHA
    6dbd259 View commit details
  4. Bump com.google.guava:guava from 33.2.1-jre to 33.3.1-jre in /common (#…

    …50)
    
    Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.2.1-jre to 33.3.1-jre.
    - [Release notes](https://github.com/google/guava/releases)
    - [Commits](https://github.com/google/guava/commits)
    
    ---
    updated-dependencies:
    - dependency-name: com.google.guava:guava
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 4, 2024
    Copy the full SHA
    b33becf View commit details

Commits on Nov 13, 2024

  1. Bump io.netty:netty-handler in /common (#52)

    Bumps [io.netty:netty-handler](https://github.com/netty/netty) from 4.1.114.Final to 4.1.115.Final.
    - [Commits](netty/netty@netty-4.1.114.Final...netty-4.1.115.Final)
    
    ---
    updated-dependencies:
    - dependency-name: io.netty:netty-handler
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 13, 2024
    Copy the full SHA
    3fd2b61 View commit details
  2. Updated gradle to 8.11

    RaphiMC committed Nov 13, 2024
    Copy the full SHA
    1f164f4 View commit details

Commits on Nov 20, 2024

  1. Updated gradle to 8.11.1

    RaphiMC committed Nov 20, 2024
    Copy the full SHA
    b114774 View commit details

Commits on Dec 2, 2024

  1. Bump org.gradle.toolchains.foojay-resolver-convention (#53)

    Bumps org.gradle.toolchains.foojay-resolver-convention from 0.8.0 to 0.9.0.
    
    ---
    updated-dependencies:
    - dependency-name: org.gradle.toolchains.foojay-resolver-convention
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 2, 2024
    Copy the full SHA
    ceea94a View commit details

Commits on Dec 6, 2024

  1. Copy the full SHA
    c3111b7 View commit details

Commits on Dec 15, 2024

  1. Copy the full SHA
    58021ca View commit details

Commits on Dec 17, 2024

  1. Bump com.google.guava:guava from 33.3.1-jre to 33.4.0-jre in /common (#…

    …54)
    
    Bumps [com.google.guava:guava](https://github.com/google/guava) from 33.3.1-jre to 33.4.0-jre.
    - [Release notes](https://github.com/google/guava/releases)
    - [Commits](https://github.com/google/guava/commits)
    
    ---
    updated-dependencies:
    - dependency-name: com.google.guava:guava
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 17, 2024
    Copy the full SHA
    a6a7542 View commit details

Commits on Dec 18, 2024

  1. Bump io.netty:netty-handler in /common (#55)

    Bumps [io.netty:netty-handler](https://github.com/netty/netty) from 4.1.115.Final to 4.1.116.Final.
    - [Commits](netty/netty@netty-4.1.115.Final...netty-4.1.116.Final)
    
    ---
    updated-dependencies:
    - dependency-name: io.netty:netty-handler
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 18, 2024
    Copy the full SHA
    b069580 View commit details

Commits on Dec 22, 2024

  1. Updated gradle to 8.12

    RaphiMC committed Dec 22, 2024
    Copy the full SHA
    478ea78 View commit details

Commits on Dec 27, 2024

  1. Copy the full SHA
    f064354 View commit details

Commits on Jan 1, 2025

  1. Copy the full SHA
    b4543f8 View commit details
  2. Move artifacts net.raphimc -> com.viaversion

    Also updates the copyright header/licensing.
    FlorianMichael committed Jan 1, 2025
    Copy the full SHA
    910d833 View commit details
  3. Release 4.0.0

    RaphiMC committed Jan 1, 2025
    Copy the full SHA
    73abfef View commit details
  4. Fix publishing

    FlorianMichael committed Jan 1, 2025
    Copy the full SHA
    0e7f7c2 View commit details
  5. Copy the full SHA
    c1bf231 View commit details

Commits on Jan 14, 2025

  1. Bump io.netty:netty-handler in /common (#56)

    Bumps [io.netty:netty-handler](https://github.com/netty/netty) from 4.1.116.Final to 4.1.117.Final.
    - [Commits](netty/netty@netty-4.1.116.Final...netty-4.1.117.Final)
    
    ---
    updated-dependencies:
    - dependency-name: io.netty:netty-handler
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 14, 2025
    Copy the full SHA
    2ca8966 View commit details

Commits on Jan 24, 2025

  1. Updated gradle to 8.12.1

    RaphiMC committed Jan 24, 2025
    Copy the full SHA
    5f14f2a View commit details

Commits on Feb 11, 2025

  1. Bump io.netty:netty-handler in /common (#57)

    Bumps [io.netty:netty-handler](https://github.com/netty/netty) from 4.1.117.Final to 4.1.118.Final.
    - [Commits](netty/netty@netty-4.1.117.Final...netty-4.1.118.Final)
    
    ---
    updated-dependencies:
    - dependency-name: io.netty:netty-handler
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 11, 2025
    Copy the full SHA
    1982b43 View commit details
Showing with 300 additions and 195 deletions.
  1. +4 −0 .github/dependabot.yml
  2. +2 −0 .github/workflows/build.yml
  3. +2 −0 .github/workflows/publish.yml
  4. +0 −20 .github/workflows/update-gradle-wrapper.yml
  5. +1 −0 .gitignore
  6. +1 −1 .idea/copyright/GPL_3_0.xml
  7. +3 −2 README.md
  8. +2 −2 build-logic/src/main/groovy/vaf.base-conventions.gradle
  9. +17 −25 build.gradle
  10. +8 −5 bukkit/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/BukkitPlugin.java
  11. +1 −1 bukkit/src/main/resources/plugin.yml
  12. +31 −4 common/build.gradle
  13. +8 −5 common/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/ViaAprilFools.java
  14. +7 −4 common/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/ViaAprilFoolsConfig.java
  15. +6 −3 common/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/api/AprilFoolsProtocolVersion.java
  16. +7 −4 common/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/api/VAFServerVersionProvider.java
  17. +7 −4 ...on/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/api/data/AprilFoolsMappingData.java
  18. +7 −4 .../main/java/{net/raphimc → com/viaversion}/viaaprilfools/api/data/AprilFoolsMappingDataLoader.java
  19. +6 −3 common/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/platform/ViaAprilFoolsConfig.java
  20. +14 −11 ...on/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/platform/ViaAprilFoolsPlatform.java
  21. +20 −8 ...c → com/viaversion}/viaaprilfools/protocol/s20w14infinitetov1_16/Protocol20w14infiniteTo1_16.java
  22. +6 −3 ...c → com/viaversion}/viaaprilfools/protocol/s20w14infinitetov1_16/data/BiomeData20w14infinite.java
  23. +6 −3 ...version}/viaaprilfools/protocol/s20w14infinitetov1_16/packet/ClientboundPackets20w14infinite.java
  24. +6 −3 ...version}/viaaprilfools/protocol/s20w14infinitetov1_16/packet/ServerboundPackets20w14infinite.java
  25. +9 −7 ...}/viaaprilfools/protocol/s20w14infinitetov1_16/rewriter/BlockItemPacketRewriter20w14infinite.java
  26. +8 −5 ...ion}/viaaprilfools/protocol/s20w14infinitetov1_16/rewriter/EntityPacketRewriter20w14infinite.java
  27. +23 −11 ...imc → com/viaversion}/viaaprilfools/protocol/s3d_sharewaretov1_14/Protocol3D_SharewareTo1_14.java
  28. +6 −3 ...iaversion}/viaaprilfools/protocol/s3d_sharewaretov1_14/packet/ClientboundPackets3D_Shareware.java
  29. +6 −3 ...iaversion}/viaaprilfools/protocol/s3d_sharewaretov1_14/packet/ServerboundPackets3D_Shareware.java
  30. +8 −6 ...on}/viaaprilfools/protocol/s3d_sharewaretov1_14/rewriter/BlockItemPacketRewriter3D_Shareware.java
  31. +8 −5 ...rsion}/viaaprilfools/protocol/s3d_sharewaretov1_14/rewriter/EntityPacketRewriter3D_Shareware.java
  32. +6 −3 ...aversion}/viaaprilfools/protocol/s3d_sharewaretov1_14/storage/ChunkCenterTracker3D_Shareware.java
  33. +6 −3 ...→ com/viaversion}/viaaprilfools/protocol/scombattest8ctov1_16_2/ProtocolCombatTest8cTo1_16_2.java
  34. +8 −5 ...imc → com/viaversion}/viaaprilfools/protocol/v1_14tos3d_shareware/Protocol1_14To3D_Shareware.java
  35. +6 −3 ...→ com/viaversion}/viaaprilfools/protocol/v1_16_2toscombattest8c/Protocol1_16_2ToCombatTest8c.java
  36. +9 −6 fabric/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/ViaFabricAddon.java
  37. +6 −3 fabric/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/fabric/util/LoggerWrapper.java
  38. +3 −3 fabric/src/main/resources/fabric.mod.json
  39. +4 −4 gradle.properties
  40. +2 −2 gradle/wrapper/gradle-wrapper.properties
  41. +1 −2 gradlew
  42. +1 −1 settings.gradle
  43. +8 −5 velocity/src/main/java/{net/raphimc → com/viaversion}/viaaprilfools/VelocityPlugin.java
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -4,6 +4,10 @@ updates:
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "gradle"
directory: "/common"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Set up JDK 21
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -11,6 +11,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Set up JDK 17
20 changes: 0 additions & 20 deletions .github/workflows/update-gradle-wrapper.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -14,3 +14,4 @@ hs_err_pid*
.gradle/
build/
out/
common/run/
2 changes: 1 addition & 1 deletion .idea/copyright/GPL_3_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ repositories {
}
dependencies {
implementation("net.raphimc:viaaprilfools-common:x.x.x") // Get latest version from releases
implementation("com.viaversion:viaaprilfools-common:x.x.x") // Get latest version from releases
}
```

@@ -43,7 +43,7 @@ dependencies {

<dependencies>
<dependency>
<groupId>net.raphimc</groupId>
<groupId>com.viaversion</groupId>
<artifactId>viaaprilfools-common</artifactId>
<version>x.x.x</version> <!-- Get latest version from releases -->
</dependency>
@@ -104,6 +104,7 @@ public ProtocolVersion getClientProtocol(UserConnection connection) {
}
}
```
There is also a ``VAFServerVersionProvider`` which can act as wrapper class instead.

## Contact
If you encounter any issues, please report them on the
4 changes: 2 additions & 2 deletions build-logic/src/main/groovy/vaf.base-conventions.gradle
Original file line number Diff line number Diff line change
@@ -22,8 +22,8 @@ base {
}

dependencies {
compileOnly "com.viaversion:viaversion-common:5.0.4"
compileOnly "com.viaversion:viabackwards-common:5.0.4"
compileOnly "com.viaversion:viaversion-common:5.2.1"
compileOnly "com.viaversion:viabackwards-common:5.2.1"
}

publishing {
42 changes: 17 additions & 25 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -57,40 +57,32 @@ idea {
// -----------------------------------------------------
// Publishing

def latestCommitHash() {
def byteOut = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--short', 'HEAD'
standardOutput = byteOut
}
return byteOut.toString('UTF-8').trim()
Provider<String> latestCommitHash() {
return providers.exec {
commandLine = ["git", "rev-parse", "--short", "HEAD"]
}.standardOutput.getAsText().map(String::trim)
}

def latestCommitMessage() {
def byteOut = new ByteArrayOutputStream()
exec {
commandLine 'git', 'log', '-1', '--pretty=%B'
standardOutput = byteOut
}
return byteOut.toString('UTF-8').trim()
Provider<String> latestCommitMessage() {
return providers.exec {
commandLine = ["git", "log", "-1", "--pretty=%B"]
}.standardOutput.getAsText().map(String::trim)
}

def branchName() {
def byteOut = new ByteArrayOutputStream()
exec {
commandLine 'git', 'rev-parse', '--abbrev-ref', 'HEAD'
standardOutput = byteOut
}
return byteOut.toString('UTF-8').trim()
Provider<String> branchName() {
return providers.exec {
commandLine = ["git", "rev-parse", "--abbrev-ref", "HEAD"]
}.standardOutput.getAsText().map(String::trim)
}

def branch = branchName()
def branch = branchName().get()
def baseVersion = project.maven_version
def isRelease = !baseVersion.contains('-')
if (!isRelease) { // Only publish releases from the main branch
def isMainBranch = branch == "main"
if (!isRelease || isMainBranch) { // Only publish releases from the main branch
def suffixedVersion = isRelease ? baseVersion : baseVersion + "+" + System.getenv("GITHUB_RUN_NUMBER")
def commitHash = latestCommitHash()
def changelogContent = "[${commitHash}](https://github.com/ViaVersion/ViaAprilFools/commit/${commitHash}) ${latestCommitMessage()}"
def commitHash = latestCommitHash().get()
def changelogContent = "[${commitHash}](https://github.com/ViaVersion/ViaAprilFools/commit/${commitHash}) ${latestCommitMessage().get()}"
modrinth {
def mcVersions = project.mcVersions
.split(',')
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/*
* This file is part of ViaAprilFools - https://github.com/RaphiMC/ViaAprilFools
* Copyright (C) 2021-2024 RK_01/RaphiMC and contributors
* This file is part of ViaAprilFools - https://github.com/ViaVersion/ViaAprilFools
* Copyright (C) 2021-2025 the original authors
* - RK_01/RaphiMC
* - FlorianMichael/EnZaXD <florian.michael07@gmail.com>
* Copyright (C) 2023-2025 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,13 +18,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.raphimc.viaaprilfools;
package com.viaversion.viaaprilfools;

import com.viaversion.viaversion.api.Via;
import com.viaversion.viaversion.api.ViaManager;
import com.viaversion.viaversion.api.protocol.version.VersionProvider;
import net.raphimc.viaaprilfools.api.VAFServerVersionProvider;
import net.raphimc.viaaprilfools.platform.ViaAprilFoolsPlatform;
import com.viaversion.viaaprilfools.api.VAFServerVersionProvider;
import com.viaversion.viaaprilfools.platform.ViaAprilFoolsPlatform;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
2 changes: 1 addition & 1 deletion bukkit/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ViaAprilFools
main: net.raphimc.viaaprilfools.BukkitPlugin
main: com.viaversion.viaaprilfools.BukkitPlugin
authors: [RK_01, FlorianMichael/EnZaXD]
version: ${version}
description: ${description}
35 changes: 31 additions & 4 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,46 @@
plugins {
id "vaf.base-conventions"

id "net.raphimc.class-token-replacer" version "1.1.2"
id "net.raphimc.class-token-replacer" version "1.1.3"
}

dependencies {
compileOnly "com.google.guava:guava:33.2.1-jre"
compileOnly "io.netty:netty-handler:4.1.111.Final"
compileOnly "com.google.guava:guava:33.4.0-jre"
compileOnly "io.netty:netty-handler:4.1.118.Final"
}

sourceSets {
main {
classTokenReplacer {
property("\${version}", project.version)
property("\${impl_version}", "git-ViaAprilFools-${project.version}:${rootProject.latestCommitHash()}")
property("\${impl_version}", "git-ViaAprilFools-${project.version}:${rootProject.latestCommitHash().get()}")
}
}
}

// Task to quickly test/debug code changes using https://github.com/ViaVersion/ViaProxy
// For further instructions see the ViaProxy repository README
tasks.register("runViaProxy", JavaExec) {
dependsOn tasks.jar

def viaProxyConfiguration = configurations.create("viaProxy")
viaProxyConfiguration.dependencies.add(dependencies.create("net.raphimc:ViaProxy:3.3.5-SNAPSHOT") {
transitive = false
})

mainClass = "net.raphimc.viaproxy.ViaProxy"
classpath = viaProxyConfiguration
workingDir = file("run")
jvmArgs = ["-DskipUpdateCheck"]

doFirst {
def jarsDir = file("$workingDir/jars")
jarsDir.mkdirs()
file("$jarsDir/${project.name}.jar").bytes = tasks.jar.archiveFile.get().asFile.bytes
}

doLast {
file("$workingDir/jars/${project.name}.jar").delete()
file("$workingDir/logs").deleteDir()
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/*
* This file is part of ViaAprilFools - https://github.com/RaphiMC/ViaAprilFools
* Copyright (C) 2021-2024 RK_01/RaphiMC and contributors
* This file is part of ViaAprilFools - https://github.com/ViaVersion/ViaAprilFools
* Copyright (C) 2021-2025 the original authors
* - RK_01/RaphiMC
* - FlorianMichael/EnZaXD <florian.michael07@gmail.com>
* Copyright (C) 2023-2025 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,10 +18,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.raphimc.viaaprilfools;
package com.viaversion.viaaprilfools;

import net.raphimc.viaaprilfools.platform.ViaAprilFoolsConfig;
import net.raphimc.viaaprilfools.platform.ViaAprilFoolsPlatform;
import com.viaversion.viaaprilfools.platform.ViaAprilFoolsConfig;
import com.viaversion.viaaprilfools.platform.ViaAprilFoolsPlatform;

public class ViaAprilFools {

Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/*
* This file is part of ViaAprilFools - https://github.com/RaphiMC/ViaAprilFools
* Copyright (C) 2021-2024 RK_01/RaphiMC and contributors
* This file is part of ViaAprilFools - https://github.com/ViaVersion/ViaAprilFools
* Copyright (C) 2021-2025 the original authors
* - RK_01/RaphiMC
* - FlorianMichael/EnZaXD <florian.michael07@gmail.com>
* Copyright (C) 2023-2025 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,7 +18,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.raphimc.viaaprilfools;
package com.viaversion.viaaprilfools;

import com.viaversion.viaversion.util.Config;

@@ -27,7 +30,7 @@
import java.util.Map;
import java.util.logging.Logger;

public class ViaAprilFoolsConfig extends Config implements net.raphimc.viaaprilfools.platform.ViaAprilFoolsConfig {
public class ViaAprilFoolsConfig extends Config implements com.viaversion.viaaprilfools.platform.ViaAprilFoolsConfig {

public ViaAprilFoolsConfig(final File configFile, final Logger logger) {
super(configFile, logger);
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/*
* This file is part of ViaAprilFools - https://github.com/RaphiMC/ViaAprilFools
* Copyright (C) 2021-2024 RK_01/RaphiMC and contributors
* This file is part of ViaAprilFools - https://github.com/ViaVersion/ViaAprilFools
* Copyright (C) 2021-2025 the original authors
* - RK_01/RaphiMC
* - FlorianMichael/EnZaXD <florian.michael07@gmail.com>
* Copyright (C) 2023-2025 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,7 +18,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.raphimc.viaaprilfools.api;
package com.viaversion.viaaprilfools.api;

import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
import com.viaversion.viaversion.protocol.RedirectProtocolVersion;
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/*
* This file is part of ViaAprilFools - https://github.com/RaphiMC/ViaAprilFools
* Copyright (C) 2021-2024 RK_01/RaphiMC and contributors
* This file is part of ViaAprilFools - https://github.com/ViaVersion/ViaAprilFools
* Copyright (C) 2021-2025 the original authors
* - RK_01/RaphiMC
* - FlorianMichael/EnZaXD <florian.michael07@gmail.com>
* Copyright (C) 2023-2025 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,7 +18,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.raphimc.viaaprilfools.api;
package com.viaversion.viaaprilfools.api;

import com.viaversion.viaversion.api.connection.UserConnection;
import com.viaversion.viaversion.api.protocol.version.ProtocolVersion;
@@ -33,7 +36,7 @@ public VAFServerVersionProvider(final VersionProvider delegate) {
@Override
public ProtocolVersion getClientProtocol(UserConnection connection) {
final ProtocolVersion version = connection.getProtocolInfo().protocolVersion();
if (version.getVersionType() == VersionType.SPECIAL) {
if (!version.isKnown()) {
return ProtocolVersion.getProtocol(VersionType.SPECIAL, version.getOriginalVersion());
} else {
return delegate.getClientProtocol(connection);
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/*
* This file is part of ViaAprilFools - https://github.com/RaphiMC/ViaAprilFools
* Copyright (C) 2021-2024 RK_01/RaphiMC and contributors
* This file is part of ViaAprilFools - https://github.com/ViaVersion/ViaAprilFools
* Copyright (C) 2021-2025 the original authors
* - RK_01/RaphiMC
* - FlorianMichael/EnZaXD <florian.michael07@gmail.com>
* Copyright (C) 2023-2025 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,12 +18,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.raphimc.viaaprilfools.api.data;
package com.viaversion.viaaprilfools.api.data;

import com.viaversion.viabackwards.api.data.BackwardsMappingData;
import com.viaversion.viaversion.api.protocol.Protocol;
import com.viaversion.nbt.tag.CompoundTag;
import net.raphimc.viaaprilfools.ViaAprilFools;
import com.viaversion.viaaprilfools.ViaAprilFools;
import org.checkerframework.checker.nullness.qual.Nullable;

import java.util.logging.Logger;
Loading