Add support for 1.21.11-rc2

This commit is contained in:
Oliver
2025-12-05 18:51:27 +01:00
parent 7fb487a344
commit dc80615146
18 changed files with 19 additions and 19 deletions

View File

@@ -1 +1 @@
2.8.1.316
2.8.1.317

View File

@@ -95,7 +95,7 @@ paper {
tasks {
runServer {
minecraftVersion("1.21.11-pre5")
minecraftVersion("1.21.11-rc2")
downloadPlugins {
// hangar("ViaVersion", "5.4.0")

View File

@@ -6,7 +6,7 @@ plugins {
paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.MOJANG_PRODUCTION
dependencies {
paperweight.paperDevBundle("1.21.11-pre5-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.21.11-rc2-R0.1-SNAPSHOT")
compileOnly(project(":plugins:fancynpcs:fn-api"))
compileOnly(project(":libraries:common"))

View File

@@ -24,7 +24,7 @@
"1.21.8",
"1.21.9",
"1.21.10",
"1.21.11-pre5"
"1.21.11-rc2"
],
"channel": "beta",
"loaders": [

View File

@@ -31,7 +31,7 @@ public class AttributeManagerImpl implements AttributeManager {
private void init() {
String mcVersion = Bukkit.getMinecraftVersion();
switch (mcVersion) {
case "1.21.11 Pre-Release 5" -> attributes = Attributes_1_21_11.getAllAttributes();
case "1.21.11 Release Candidate 2" -> attributes = Attributes_1_21_11.getAllAttributes();
case "1.21.9", "1.21.10" -> attributes = Attributes_1_21_9.getAllAttributes();
case "1.21.6", "1.21.7", "1.21.8" -> attributes = Attributes_1_21_6.getAllAttributes();
case "1.21.5" -> attributes = Attributes_1_21_5.getAllAttributes();

View File

@@ -164,7 +164,7 @@ public class FancyNpcs extends JavaPlugin implements FancyNpcsPlugin {
String mcVersion = Bukkit.getMinecraftVersion();
switch (mcVersion) {
case "1.21.11 Pre-Release 5" -> npcAdapter = Npc_1_21_11::new;
case "1.21.11 Release Candidate 2" -> npcAdapter = Npc_1_21_11::new;
case "1.21.9", "1.21.10" -> npcAdapter = Npc_1_21_9::new;
case "1.21.6", "1.21.7", "1.21.8" -> npcAdapter = Npc_1_21_6::new;
case "1.21.5" -> npcAdapter = Npc_1_21_5::new;
@@ -277,7 +277,7 @@ public class FancyNpcs extends JavaPlugin implements FancyNpcsPlugin {
pluginManager.registerEvents(new PlayerTeleportListener(), instance);
pluginManager.registerEvents(new PlayerChangedWorldListener(), instance);
pluginManager.registerEvents(skinManager, instance);
if (Set.of("1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9", "1.21.10", "1.21.11 Pre-Release 5").contains(Bukkit.getMinecraftVersion())) {
if (Set.of("1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9", "1.21.10", "1.21.11 Release Candidate 2").contains(Bukkit.getMinecraftVersion())) {
getServer().getPluginManager().registerEvents(new PlayerLoadedListener(), this);
}

View File

@@ -199,7 +199,7 @@ public final class CloudCommandManager {
annotationParser.parse(FancyNpcsDebugCMD.INSTANCE);
}
if (Set.of("1.20.5", "1.20.6", "1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9", "1.21.10", "1.21.11 Pre-Release 5").contains(Bukkit.getMinecraftVersion())) {
if (Set.of("1.20.5", "1.20.6", "1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9", "1.21.10", "1.21.11 Release Candidate 2").contains(Bukkit.getMinecraftVersion())) {
annotationParser.parse(ScaleCMD.INSTANCE);
}