Skip to content

Commit

Permalink
and 1.21.3 ...
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Oct 23, 2024
1 parent 61e00d3 commit f2716b3
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Check out **[images section](#images)** down below.

## Installation

Paper **1.19.4** - **1.21.2** with **Java 21** (or higher) is required. Plugin should also work on **Paper** forks.
Paper **1.19.4** - **1.21.3** with **Java 21** (or higher) is required. Plugin should also work on **Paper** forks.

**Spigot** is **not** supported.

Expand Down
15 changes: 14 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@ plugins {
runPaper.folia.registerTask()

val supportedVersions =
listOf("1.19.4", "1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4", "1.20.5", "1.20.6", "1.21", "1.21.1", "1.21.2")
listOf(
"1.19.4",
"1.20",
"1.20.1",
"1.20.2",
"1.20.3",
"1.20.4",
"1.20.5",
"1.20.6",
"1.21",
"1.21.1",
"1.21.2",
"1.21.3"
)

allprojects {
group = "de.oliver"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public AttributeManagerImpl() {
private void init() {
String mcVersion = Bukkit.getMinecraftVersion();
switch (mcVersion) {
case "1.21", "1.21.1", "1.21.2" -> attributes = Attributes_1_21_1.getAllAttributes();
case "1.21", "1.21.1", "1.21.2", "1.21.3" -> attributes = Attributes_1_21_1.getAllAttributes();
case "1.20.5", "1.20.6" -> attributes = Attributes_1_20_5.getAllAttributes();
case "1.20.3", "1.20.4" -> attributes = Attributes_1_20_4.getAllAttributes();
case "1.20.2" -> attributes = Attributes_1_20_2.getAllAttributes();
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/de/oliver/fancynpcs/FancyNpcs.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void onLoad() {
String mcVersion = Bukkit.getMinecraftVersion();

switch (mcVersion) {
case "1.21", "1.21.1", "1.21.2" -> npcAdapter = Npc_1_21_1::new;
case "1.21", "1.21.1", "1.21.2", "1.21.3" -> npcAdapter = Npc_1_21_1::new;
case "1.20.5", "1.20.6" -> npcAdapter = Npc_1_20_6::new;
case "1.20.3", "1.20.4" -> npcAdapter = Npc_1_20_4::new;
case "1.20.2" -> npcAdapter = Npc_1_20_2::new;
Expand All @@ -155,7 +155,7 @@ public void onLoad() {
fancyLogger.error("Unsupported minecraft server version.");
getLogger().warning("--------------------------------------------------");
getLogger().warning("Unsupported minecraft server version.");
getLogger().warning("This plugin only supports 1.19.4 - 1.21.2");
getLogger().warning("This plugin only supports 1.19.4 - 1.21.3");
getLogger().warning("Disabling the FancyNpcs plugin.");
getLogger().warning("--------------------------------------------------");
pluginManager.disablePlugin(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ else if (exceptionContext.exception().enumClass() == GlowingColor.class)


String mcVersion = Bukkit.getMinecraftVersion();
if (mcVersion.equals("1.20.5") || mcVersion.equals("1.20.6") || mcVersion.equals("1.21") || mcVersion.equals("1.21.1") || mcVersion.equals("1.21.2")) {
if (mcVersion.equals("1.20.5") || mcVersion.equals("1.20.6") || mcVersion.equals("1.21") || mcVersion.equals("1.21.1") || mcVersion.equals("1.21.2") || mcVersion.equals("1.21.3")) {
annotationParser.parse(ScaleCMD.INSTANCE);
}

Expand Down

0 comments on commit f2716b3

Please sign in to comment.