chore: Update SongodaCore to v3.5.0-SNAPSHOT

This commit is contained in:
Christian Koop 2024-10-02 15:32:40 +02:00
parent 440a711120
commit 95af1a8372
No known key found for this signature in database
GPG Key ID: 6A4A09E8ED946113
6 changed files with 9 additions and 9 deletions

View File

@ -41,7 +41,7 @@ public class Level {
if (this.filter) { if (this.filter) {
this.description.add(getPlugin().getLocale().getMessage("interface.hopper.filter") this.description.add(getPlugin().getLocale().getMessage("interface.hopper.filter")
.processPlaceholder("enabled", getPlugin().getLocale() .processPlaceholder("enabled", getPlugin().getLocale()
.getMessage("general.word.enabled").getMessage()).toText()); .getMessage("general.word.enabled").toText()).toText());
} }
if (this.teleport) { if (this.teleport) {
this.description.add(getPlugin() this.description.add(getPlugin()

View File

@ -85,7 +85,7 @@ public class GUIOverview extends CustomizableGui {
.processPlaceholder( .processPlaceholder(
"type", "type",
this.hopper.getTeleportTrigger() == TeleportTrigger.DISABLED this.hopper.getTeleportTrigger() == TeleportTrigger.DISABLED
? this.plugin.getLocale().getMessage("general.word.disabled").getMessage() ? this.plugin.getLocale().getMessage("general.word.disabled").toText()
: this.hopper.getTeleportTrigger().name() : this.hopper.getTeleportTrigger().name()
) )
.toText() .toText()

View File

@ -151,8 +151,8 @@ public class ModuleAutoSell extends Module {
ArrayList<String> loreSell = new ArrayList<>(); ArrayList<String> loreSell = new ArrayList<>();
String[] parts = this.plugin.getLocale().getMessage("interface.hopper.selllore") String[] parts = this.plugin.getLocale().getMessage("interface.hopper.selllore")
.processPlaceholder("timeleft", getTime(hopper) == -9999 ? "" : (int) Math.floor(getTime(hopper) / 20)) .processPlaceholder("timeleft", String.valueOf(getTime(hopper) == -9999 ? "" : (int) Math.floor(getTime(hopper) / 20)))
.processPlaceholder("state", isNotifying(hopper)) .processPlaceholder("state", String.valueOf(isNotifying(hopper)))
.toText() .toText()
.split("\\|"); .split("\\|");

View File

@ -95,10 +95,10 @@ public class ModuleAutoSmelter extends Module {
blockMeta.setDisplayName(this.plugin.getLocale().getMessage("interface.hopper.smelttitle").toText()); blockMeta.setDisplayName(this.plugin.getLocale().getMessage("interface.hopper.smelttitle").toText());
ArrayList<String> loreBlock = new ArrayList<>(); ArrayList<String> loreBlock = new ArrayList<>();
String[] parts = this.plugin.getLocale().getMessage("interface.hopper.smeltlore") String[] parts = this.plugin.getLocale().getMessage("interface.hopper.smeltlore")
.processPlaceholder("timeleft", getTime(hopper) == -9999 ? "" : (int) Math.floor(getTime(hopper) / 20.0)) .processPlaceholder("timeleft", String.valueOf(getTime(hopper) == -9999 ? "" : (int) Math.floor(getTime(hopper) / 20.0)))
.processPlaceholder("enabled", isEnabled(hopper) ? .processPlaceholder("enabled", isEnabled(hopper) ?
this.plugin.getLocale().getMessage("general.word.enabled").getMessage() : this.plugin.getLocale().getMessage("general.word.enabled").toText() :
this.plugin.getLocale().getMessage("general.word.disabled").getMessage() this.plugin.getLocale().getMessage("general.word.disabled").toText()
) )
.toText() .toText()
.split("\\|"); .split("\\|");

View File

@ -72,7 +72,7 @@ public class ModuleMobHopper extends Module {
ArrayList<String> loreBlock = new ArrayList<>(); ArrayList<String> loreBlock = new ArrayList<>();
String[] parts = this.plugin.getLocale().getMessage("interface.hopper.moblore").processPlaceholder("enabled", String[] parts = this.plugin.getLocale().getMessage("interface.hopper.moblore").processPlaceholder("enabled",
isEnabled(hopper) ? this.plugin.getLocale().getMessage("general.word.enabled").toText() isEnabled(hopper) ? this.plugin.getLocale().getMessage("general.word.enabled").toText()
: this.plugin.getLocale().getMessage("general.word.disabled").getMessage()).toText().split("\\|"); : this.plugin.getLocale().getMessage("general.word.disabled").toText()).toText().split("\\|");
for (String line : parts) { for (String line : parts) {
loreBlock.add(TextUtils.formatText(line)); loreBlock.add(TextUtils.formatText(line));
} }

View File

@ -20,7 +20,7 @@
<url>https://craftaro.com/marketplace/product/15</url> <url>https://craftaro.com/marketplace/product/15</url>
<properties> <properties>
<craftaro.coreVersion>3.3.0-SNAPSHOT</craftaro.coreVersion> <craftaro.coreVersion>3.5.0-SNAPSHOT</craftaro.coreVersion>
<maven.compiler.release>8</maven.compiler.release> <maven.compiler.release>8</maven.compiler.release>
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>