Update to 1.21.11

This commit is contained in:
Len 2025-12-24 21:37:29 +01:00
parent 4d531ea7b5
commit f80408502b
3 changed files with 6 additions and 6 deletions

View File

@ -41,7 +41,7 @@ tasks {
file.parentFile.mkdirs() file.parentFile.mkdirs()
} }
if (!file.exists()) { if (!file.exists()) {
download("https://jenkins.destro.xyz/job/Cosmos/lastSuccessfulBuild/artifact/cosmos-server/build/libs/cosmos-bundler-1.21.8-R0.1-SNAPSHOT-mojmap.jar", fileName) download("https://jenkins.destro.xyz/job/Cosmos/lastSuccessfulBuild/artifact/cosmos-server/build/libs/cosmos-bundler-1.21.11-R0.1-SNAPSHOT-mojmap.jar", fileName)
} }
serverJar(file) serverJar(file)
minecraftVersion("1.21") minecraftVersion("1.21")
@ -73,7 +73,7 @@ publishing {
} }
dependencies { dependencies {
compileOnly("com.alttd.cosmos:cosmos-api:1.21.8-R0.1-SNAPSHOT") compileOnly("com.alttd.cosmos:cosmos-api:1.21.11-R0.1-SNAPSHOT")
compileOnly("com.github.milkbowl:VaultAPI:1.7") { compileOnly("com.github.milkbowl:VaultAPI:1.7") {
exclude("org.bukkit","bukkit") exclude("org.bukkit","bukkit")
} }

View File

@ -46,14 +46,14 @@ public class PlayerShops extends JavaPlugin {
public void onEnable() { public void onEnable() {
instance = this; instance = this;
if(!setupEconomy()) { if(!setupEconomy()) {
Bukkit.getLogger().warning("Error loading Vault and economy.\n Disabling plugin"); getLogger().warning("Error loading Vault and economy.\n Disabling plugin");
this.setEnabled(false); this.setEnabled(false);
return; return;
} }
Bukkit.getLogger().info("Hooked into Vault economy provided by " + econ.getName()); getLogger().info("Hooked into Vault economy provided by " + econ.getName());
reloadConfigs(); reloadConfigs();
if(!setupDatabase()) { if(!setupDatabase()) {
Bukkit.getLogger().warning("Error setting up database connection.\n Disabling plugin"); getLogger().warning("Error setting up database connection.\n Disabling plugin");
this.setEnabled(false); this.setEnabled(false);
return; return;
} }

View File

@ -179,7 +179,7 @@ public class PlayerShop {
Placeholder.component("itemname", ShopUtil.trimmedItemNameComponent(getItemStack())) Placeholder.component("itemname", ShopUtil.trimmedItemNameComponent(getItemStack()))
); );
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
signBlock.line(i, miniMessage.deserialize(signLines.get(i), tagResolver)); signBlock.getSide(Side.FRONT).line(i, miniMessage.deserialize(signLines.get(i), tagResolver));
} }
signBlock.update(true); signBlock.update(true);
} }