Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
BenceX100 committed Oct 23, 2024
1 parent 1532efd commit f3d06d1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.artillexstudios</groupId>
<artifactId>AxPlayerWarps</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
<packaging>jar</packaging>

<name>AxPlayerWarps</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import com.artillexstudios.axplayerwarps.guis.impl.CategoryGui;
import com.artillexstudios.axplayerwarps.guis.impl.EditWarpGui;
import com.artillexstudios.axplayerwarps.guis.impl.FavoritesGui;
import com.artillexstudios.axplayerwarps.guis.impl.MyWarpsGui;
import com.artillexstudios.axplayerwarps.guis.impl.RateWarpGui;
import com.artillexstudios.axplayerwarps.guis.impl.RecentsGui;
import com.artillexstudios.axplayerwarps.guis.impl.WarpsGui;
Expand Down Expand Up @@ -103,6 +104,7 @@ public void enable() {
EditWarpGui.reload();
FavoritesGui.reload();
RecentsGui.reload();
MyWarpsGui.reload();

switch (CONFIG.getString("database.type").toLowerCase()) {
// case "sqlite" -> database = new SQLite();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.artillexstudios.axplayerwarps.guis.impl.CategoryGui;
import com.artillexstudios.axplayerwarps.guis.impl.EditWarpGui;
import com.artillexstudios.axplayerwarps.guis.impl.FavoritesGui;
import com.artillexstudios.axplayerwarps.guis.impl.MyWarpsGui;
import com.artillexstudios.axplayerwarps.guis.impl.RateWarpGui;
import com.artillexstudios.axplayerwarps.guis.impl.RecentsGui;
import com.artillexstudios.axplayerwarps.guis.impl.WarpsGui;
Expand Down Expand Up @@ -95,6 +96,12 @@ public void execute(CommandSender sender) {
}
Bukkit.getConsoleSender().sendMessage(StringUtils.formatToString("&#33EEBB╠ &#99FFDDReloaded &fguis/recent.yml&#99FFDD!"));

if (!MyWarpsGui.reload()) {
MESSAGEUTILS.sendFormatted(sender, "reload.failed", Map.of("%file%", "guis/my-warps.yml"));
return;
}
Bukkit.getConsoleSender().sendMessage(StringUtils.formatToString("&#33EEBB╠ &#99FFDDReloaded &fguis/my-warps.yml&#99FFDD!"));

HookManager.updateHooks();
WorldManager.reload();
CategoryManager.reload();
Expand Down

0 comments on commit f3d06d1

Please sign in to comment.