Skip to content

Commit

Permalink
Attempt upgrade to 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisTestUser committed Sep 23, 2024
1 parent 1f3963c commit 2855f9b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
java-version: 21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ This plugin will work for both Spigot and Paper, but the latter is recommended b

## Updating to Later Versions

Updating is usually very simple. First, in build.gradle.kts, change the variable mcVersion to the new version. Then, replace the Bukkit version with the newest one in the source code. For example, the Bukkit version for 1.19.2 is v1_19_R1. Right now, there are 6 instances of this string in the source code.

Run 'gradlew build' afterwards. If there are still errors, the source code will need to be manually updated to be compatible with the new Minecraft version.
In build.gradle.kts, change the variable mcVersion to the new version. Then run 'gradlew build'. If there are still errors, the source code will need to be manually updated to be compatible with the new Minecraft version.

## Statistics

Expand Down
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ plugins {
group = "com.solarrabbit"
version = "1.11.1"
description = "LargeRaids"
val mcVersion = "1.20.4"
val mcVersion = "1.20.6"

java {
// Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
// Configure the java toolchain. This allows gradle to auto-provision JDK 21 on systems that only have JDK 8 installed for example.
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

repositories {
Expand All @@ -30,7 +30,7 @@ dependencies {
paperDevBundle(mcVersion + "-R0.1-SNAPSHOT")
shadow("org.bstats:bstats-bukkit:3.0.2")
implementation("me.clip:placeholderapi:2.11.6")
implementation("io.lumine:Mythic-Dist:5.6.2-SNAPSHOT")
implementation("io.lumine:Mythic-Dist:5.7.1-SNAPSHOT")
}

tasks {
Expand All @@ -44,7 +44,7 @@ tasks {

// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
// See https://openjdk.java.net/jeps/247 for more information.
options.release.set(17)
options.release.set(21)
}
javadoc {
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.solarrabbit.largeraids.nms.AbstractRaidWrapper;

import org.bukkit.Raid;
import org.bukkit.craftbukkit.v1_20_R3.CraftRaid;
import org.bukkit.craftbukkit.CraftRaid;

public class CraftRaidWrapper extends AbstractCraftRaidWrapper {
private static MethodHandle handle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.solarrabbit.largeraids.nms.AbstractCraftRaiderWrapper;

import org.bukkit.craftbukkit.v1_20_R3.entity.CraftRaider;
import org.bukkit.craftbukkit.entity.CraftRaider;
import org.bukkit.entity.Raider;

public class CraftRaiderWrapper extends AbstractCraftRaiderWrapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.solarrabbit.largeraids.nms.AbstractCraftServerWrapper;

import org.bukkit.Server;
import org.bukkit.craftbukkit.v1_20_R3.CraftServer;
import org.bukkit.craftbukkit.CraftServer;

public class CraftServerWrapper extends AbstractCraftServerWrapper {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import net.minecraft.world.entity.Mob;

import org.bukkit.craftbukkit.v1_20_R3.entity.CraftVex;
import org.bukkit.craftbukkit.entity.CraftVex;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Vex;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.solarrabbit.largeraids.nms.AbstractCraftWorldWrapper;

import org.bukkit.World;
import org.bukkit.craftbukkit.v1_20_R3.CraftWorld;
import org.bukkit.craftbukkit.CraftWorld;

public class CraftWorldWrapper extends AbstractCraftWorldWrapper {

Expand Down

0 comments on commit 2855f9b

Please sign in to comment.