mirror of
https://github.com/plexusorg/ItemizerX.git
synced 2026-06-04 03:36:54 +00:00
Uplift Paper version to 1.21.10
This commit is contained in:
+3
-3
@@ -69,7 +69,7 @@ bukkit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Adapted from PlotSquared
|
// Adapted from PlotSquared
|
||||||
val supportedVersions = listOf("1.21.8")
|
val supportedVersions = listOf("1.21.8", "1.21.9", "1.21.10")
|
||||||
tasks {
|
tasks {
|
||||||
supportedVersions.forEach {
|
supportedVersions.forEach {
|
||||||
register<RunServer>("runServer-$it") {
|
register<RunServer>("runServer-$it") {
|
||||||
@@ -97,8 +97,8 @@ tasks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
paperweight.paperDevBundle("1.21.8-R0.1-SNAPSHOT")
|
paperweight.paperDevBundle("1.21.10-R0.1-SNAPSHOT")
|
||||||
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT")
|
||||||
compileOnly("net.coreprotect:coreprotect:22.4")
|
compileOnly("net.coreprotect:coreprotect:22.4")
|
||||||
implementation("org.bstats:bstats-base:3.0.2")
|
implementation("org.bstats:bstats-base:3.0.2")
|
||||||
implementation("org.bstats:bstats-bukkit:3.0.2")
|
implementation("org.bstats:bstats-bukkit:3.0.2")
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("io.papermc.paper:paper-api:1.21..8-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT")
|
||||||
paperweight.paperDevBundle("1.21.8-R0.1-SNAPSHOT")
|
paperweight.paperDevBundle("1.21.10-R0.1-SNAPSHOT")
|
||||||
compileOnly("net.coreprotect:coreprotect:22.4")
|
compileOnly("net.coreprotect:coreprotect:22.4")
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@ public class ItemizerX extends JavaPlugin
|
|||||||
getCommand("itemizer").setTabCompleter(new ItemizerXTab());
|
getCommand("itemizer").setTabCompleter(new ItemizerXTab());
|
||||||
switch (getServerVersion())
|
switch (getServerVersion())
|
||||||
{
|
{
|
||||||
case "1.21.8" ->
|
case "1.21.8", "1.21.9", "1.21.10" ->
|
||||||
{
|
{
|
||||||
getCommand("itemizer").setExecutor(new ItemizerXCommand());
|
getCommand("itemizer").setExecutor(new ItemizerXCommand());
|
||||||
attr = new dev.plex.itemizerx.v1_21_R1.AttributeManager();
|
attr = new dev.plex.itemizerx.v1_21_R1.AttributeManager();
|
||||||
@@ -36,7 +36,7 @@ public class ItemizerX extends JavaPlugin
|
|||||||
default ->
|
default ->
|
||||||
{
|
{
|
||||||
getLogger().severe("You are trying to run ItemizerX on an incompatible server version.");
|
getLogger().severe("You are trying to run ItemizerX on an incompatible server version.");
|
||||||
getLogger().severe("ItemizerX only supports version 1.21.8, disabling plugin.");
|
getLogger().severe("ItemizerX only supports versions 1.21.8 to 1.21.10, disabling plugin.");
|
||||||
getServer().getPluginManager().disablePlugin(this);
|
getServer().getPluginManager().disablePlugin(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
dependencies {
|
dependencies {
|
||||||
paperweight.paperDevBundle("1.21.8-R0.1-SNAPSHOT")
|
paperweight.paperDevBundle("1.21.10-R0.1-SNAPSHOT")
|
||||||
}
|
}
|
||||||
@@ -29,7 +29,7 @@ public class AttributeManager implements IAttributeManager {
|
|||||||
if (args.length < 4)
|
if (args.length < 4)
|
||||||
{
|
{
|
||||||
player.sendMessage(mm.deserialize("<aqua>/itemizer attr add <<white>name<aqua>> <<white>strength<aqua>>" +
|
player.sendMessage(mm.deserialize("<aqua>/itemizer attr add <<white>name<aqua>> <<white>strength<aqua>>" +
|
||||||
"[<white>slot<aqua>] <red>- <gold>Add an attribute"));
|
" [<white>slot<aqua>] <red>- <gold>Add an attribute"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user