mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-22 02:05:52 +01:00
chore: Update SongodaCore to v3.5.0-SNAPSHOT
This commit is contained in:
parent
440a711120
commit
95af1a8372
@ -41,7 +41,7 @@ public class Level {
|
||||
if (this.filter) {
|
||||
this.description.add(getPlugin().getLocale().getMessage("interface.hopper.filter")
|
||||
.processPlaceholder("enabled", getPlugin().getLocale()
|
||||
.getMessage("general.word.enabled").getMessage()).toText());
|
||||
.getMessage("general.word.enabled").toText()).toText());
|
||||
}
|
||||
if (this.teleport) {
|
||||
this.description.add(getPlugin()
|
||||
|
@ -85,7 +85,7 @@ public class GUIOverview extends CustomizableGui {
|
||||
.processPlaceholder(
|
||||
"type",
|
||||
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()
|
||||
)
|
||||
.toText()
|
||||
|
@ -151,8 +151,8 @@ public class ModuleAutoSell extends Module {
|
||||
ArrayList<String> loreSell = new ArrayList<>();
|
||||
|
||||
String[] parts = this.plugin.getLocale().getMessage("interface.hopper.selllore")
|
||||
.processPlaceholder("timeleft", getTime(hopper) == -9999 ? "∞" : (int) Math.floor(getTime(hopper) / 20))
|
||||
.processPlaceholder("state", isNotifying(hopper))
|
||||
.processPlaceholder("timeleft", String.valueOf(getTime(hopper) == -9999 ? "∞" : (int) Math.floor(getTime(hopper) / 20)))
|
||||
.processPlaceholder("state", String.valueOf(isNotifying(hopper)))
|
||||
.toText()
|
||||
.split("\\|");
|
||||
|
||||
|
@ -95,10 +95,10 @@ public class ModuleAutoSmelter extends Module {
|
||||
blockMeta.setDisplayName(this.plugin.getLocale().getMessage("interface.hopper.smelttitle").toText());
|
||||
ArrayList<String> loreBlock = new ArrayList<>();
|
||||
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) ?
|
||||
this.plugin.getLocale().getMessage("general.word.enabled").getMessage() :
|
||||
this.plugin.getLocale().getMessage("general.word.disabled").getMessage()
|
||||
this.plugin.getLocale().getMessage("general.word.enabled").toText() :
|
||||
this.plugin.getLocale().getMessage("general.word.disabled").toText()
|
||||
)
|
||||
.toText()
|
||||
.split("\\|");
|
||||
|
@ -72,7 +72,7 @@ public class ModuleMobHopper extends Module {
|
||||
ArrayList<String> loreBlock = new ArrayList<>();
|
||||
String[] parts = this.plugin.getLocale().getMessage("interface.hopper.moblore").processPlaceholder("enabled",
|
||||
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) {
|
||||
loreBlock.add(TextUtils.formatText(line));
|
||||
}
|
||||
|
2
pom.xml
2
pom.xml
@ -20,7 +20,7 @@
|
||||
<url>https://craftaro.com/marketplace/product/15</url>
|
||||
|
||||
<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.target>1.8</maven.compiler.target>
|
||||
|
Loading…
Reference in New Issue
Block a user