This commit is contained in:
BenceX100 2024-10-31 20:02:50 +01:00
parent 2f4dbc331d
commit 2e38ba67c9
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@
<groupId>com.artillexstudios</groupId>
<artifactId>AxTrade</artifactId>
<version>1.8.1</version>
<version>1.9.0</version>
<packaging>jar</packaging>
<name>AxTrade</name>
@ -116,7 +116,7 @@
<dependency>
<groupId>com.artillexstudios.axapi</groupId>
<artifactId>axapi</artifactId>
<version>1.4.385</version>
<version>1.4.396</version>
<scope>compile</scope>
<classifier>all</classifier>
</dependency>

View File

@ -92,25 +92,25 @@ public class Commands implements OrphanCommand {
public void reload(@NotNull CommandSender sender) {
Bukkit.getConsoleSender().sendMessage(StringUtils.formatToString("&#00FFDD[AxTrade] &#AAFFDDReloading configuration..."));
if (!CONFIG.reload()) {
MESSAGEUTILS.sendFormatted(sender, "reload.failed", Map.of("%file%", "config.yml"));
MESSAGEUTILS.sendLang(sender, "reload.failed", Map.of("%file%", "config.yml"));
return;
}
Bukkit.getConsoleSender().sendMessage(StringUtils.formatToString("&#00FFDD╠ &#AAFFDDReloaded &fconfig.yml&#AAFFDD!"));
if (!LANG.reload()) {
MESSAGEUTILS.sendFormatted(sender, "reload.failed", Map.of("%file%", "lang.yml"));
MESSAGEUTILS.sendLang(sender, "reload.failed", Map.of("%file%", "lang.yml"));
return;
}
Bukkit.getConsoleSender().sendMessage(StringUtils.formatToString("&#00FFDD╠ &#AAFFDDReloaded &flang.yml&#AAFFDD!"));
if (!GUIS.reload()) {
MESSAGEUTILS.sendFormatted(sender, "reload.failed", Map.of("%file%", "guis.yml"));
MESSAGEUTILS.sendLang(sender, "reload.failed", Map.of("%file%", "guis.yml"));
return;
}
Bukkit.getConsoleSender().sendMessage(StringUtils.formatToString("&#00FFDD╠ &#AAFFDDReloaded &fguis.yml&#AAFFDD!"));
if (!HOOKS.reload()) {
MESSAGEUTILS.sendFormatted(sender, "reload.failed", Map.of("%file%", "currencies.yml"));
MESSAGEUTILS.sendLang(sender, "reload.failed", Map.of("%file%", "currencies.yml"));
return;
}
Bukkit.getConsoleSender().sendMessage(StringUtils.formatToString("&#00FFDD╠ &#AAFFDDReloaded &fcurrencies.yml&#AAFFDD!"));