Add placeholder files for 1.21

This commit is contained in:
Telesphoreo 2024-06-15 18:19:35 -05:00
parent 21c12f7673
commit 8a691005b8
5 changed files with 18 additions and 3 deletions

View File

@ -70,7 +70,7 @@ bukkit {
// Adapted from PlotSquared
val supportedVersions =
listOf("1.19.4", "1.20", "1.20.1", "1.20.2", "1.20.4", "1.20.6")
listOf("1.20.2", "1.20.4", "1.20.6", "1.21")
tasks {
supportedVersions.forEach {
register<RunServer>("runServer-$it") {
@ -104,6 +104,7 @@ dependencies {
implementation("org.bstats:bstats-base:3.0.2")
implementation("org.bstats:bstats-bukkit:3.0.2")
implementation(project(path = ":shared", configuration = "shadow"))
implementation(project(path = ":v1_21_R1", configuration = "shadow"))
implementation(project(path = ":v1_20_R4", configuration = "shadow"))
implementation(project(path = ":v1_20_R3", configuration = "shadow"))
implementation(project(path = ":v1_20_R2", configuration = "shadow"))

View File

@ -4,6 +4,7 @@ plugins {
rootProject.name = "ItemizerX"
include("shared")
include("v1_21_R1")
include("v1_20_R4")
include("v1_20_R3")
include("v1_20_R2")

View File

@ -26,11 +26,16 @@ public class ItemizerX extends JavaPlugin
getCommand("itemizer").setTabCompleter(new ItemizerXTab());
switch (getServerVersion())
{
/*case "1.21" ->
{
getCommand("itemizer").setExecutor(new ItemizerXCommand());
attr = new dev.plex.itemizerx.v1_21_R1.AttributeManager();
}
case "1.20.5", "1.20.6" ->
{
getCommand("itemizer").setExecutor(new ItemizerXCommand());
attr = new dev.plex.itemizerx.v1_20_R4.AttributeManager();
}
}*/
case "1.20.4" ->
{
getCommand("itemizer").setExecutor(new ItemizerXCommand());
@ -44,7 +49,7 @@ public class ItemizerX extends JavaPlugin
default ->
{
getLogger().severe("You are trying to run ItemizerX on an incompatible server version.");
getLogger().severe("ItemizerX only supports versions 1.20.2 to 1.20.6, disabling plugin.");
getLogger().severe("ItemizerX only supports versions 1.20.2 to 1.21, disabling plugin.");
getServer().getPluginManager().disablePlugin(this);
}
}

View File

@ -0,0 +1,3 @@
dependencies {
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")
}

View File

@ -0,0 +1,5 @@
package dev.plex.itemizerx.v1_21_R1;
public class Main
{
}