diff --git a/CHANGELOG.md b/CHANGELOG.md index fe747aba7..0eb16b06e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ## Fixes: -* Temporarily commented out code for direct ItemsAdder support until LoneDev is finished making any changes they would like to. - * The manual way using CustomModelData will still work. +* Fix files not loading on linux ( I love file systems! ) +* Uppercase player name in default files to avoid some stupid error. ## Other: * [Feature Requests](https://github.com/Crazy-Crew/CrazyCrates/discussions/categories/features) diff --git a/core/src/main/java/com/badbones69/crazycrates/Server.java b/core/src/main/java/com/badbones69/crazycrates/Server.java index e17f229e7..303308e07 100644 --- a/core/src/main/java/com/badbones69/crazycrates/Server.java +++ b/core/src/main/java/com/badbones69/crazycrates/Server.java @@ -79,7 +79,7 @@ public void reload() { */ @Override public @NotNull final List getCrateFiles() { - return FileUtil.getFiles(getCrateFolder().toPath(), ".yml", true); + return FileUtil.getFiles(getCrateFolder(), ".yml"); } /** diff --git a/core/src/main/java/com/badbones69/crazycrates/config/ConfigManager.java b/core/src/main/java/com/badbones69/crazycrates/config/ConfigManager.java index ab095b35a..934538a43 100644 --- a/core/src/main/java/com/badbones69/crazycrates/config/ConfigManager.java +++ b/core/src/main/java/com/badbones69/crazycrates/config/ConfigManager.java @@ -25,7 +25,7 @@ public class ConfigManager { /** * Loads configuration files. */ - public static void load(File dataFolder) { + public static void load(final File dataFolder) { YamlFileResourceOptions builder = YamlFileResourceOptions.builder().indentationSize(2).build(); config = SettingsManagerBuilder diff --git a/gradle.properties b/gradle.properties index 54b17e8f7..14af6ce49 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,4 +7,4 @@ authors=["ryderbelserion", "BadBones69", "TDL"] description=Create unlimited crates with multiple crate types to choose from! website=https://modrinth.com/plugin/crazycrates -version=3.0.4 \ No newline at end of file +version=3.0.5 \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 863e6fb74..06b858baa 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -13,7 +13,7 @@ oraxen = "1.171.0" annotations = "24.1.0" crazycrates = "0.6" gson = "2.10.1" -vital = "1.5.4" +vital = "1.5.5" decentholograms = "2.8.8" fancyholograms = "2.0.6" diff --git a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/CrateManager.java b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/CrateManager.java index 4f5b2f235..ecd5b3970 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/CrateManager.java +++ b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/CrateManager.java @@ -204,7 +204,7 @@ public void loadHolograms() { * @return a list of crate names. */ public List getCrateNames() { - return new ArrayList<>(this.plugin.getInstance().getCrateFiles()); + return this.plugin.getInstance().getCrateFiles(); } /** diff --git a/paper/src/main/resources/crates/CrateExample.yml b/paper/src/main/resources/crates/CrateExample.yml index 9cc4dc5bd..4d388a182 100644 --- a/paper/src/main/resources/crates/CrateExample.yml +++ b/paper/src/main/resources/crates/CrateExample.yml @@ -157,7 +157,7 @@ Crate: # The chance to win i.e. 7% Chance: 7 # An example of a custom player head using minecraft players. - Player: "rukkhadevata" + Player: "Rukkhadevata" '3': # The name of the item to display in the gui. DisplayName: "Diamond Sword"