From 7d0aa3cefa02ca66f51eeffe4618b71d4999ba04 Mon Sep 17 00:00:00 2001 From: ThiagoROX <51332006+SrBedrock@users.noreply.github.com> Date: Sat, 21 Sep 2024 03:26:05 -0300 Subject: [PATCH] =?UTF-8?q?Melhoria=20de=20formata=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paper/run/config/paper-global.yml | 4 +- paper/run/config/paper-world-defaults.yml | 70 +++++++++---------- paper/run/spigot.yml | 14 ++-- .../commands/subs/CrateBaseCommand.java | 1 - .../crazycrates/tasks/BukkitUserManager.java | 1 - 5 files changed, 44 insertions(+), 46 deletions(-) diff --git a/paper/run/config/paper-global.yml b/paper/run/config/paper-global.yml index 9dc4c4149..5730981b6 100644 --- a/paper/run/config/paper-global.yml +++ b/paper/run/config/paper-global.yml @@ -113,8 +113,8 @@ spark: timings: enabled: false hidden-config-entries: - - database - - proxies.velocity.secret + - database + - proxies.velocity.secret history-interval: 300 history-length: 3600 server-name: Unknown Server diff --git a/paper/run/config/paper-world-defaults.yml b/paper/run/config/paper-world-defaults.yml index 8f63d1fd9..b8d4ce8e2 100644 --- a/paper/run/config/paper-world-defaults.yml +++ b/paper/run/config/paper-world-defaults.yml @@ -18,33 +18,33 @@ anticheat: enabled: false engine-mode: 1 hidden-blocks: - - copper_ore - - deepslate_copper_ore - - gold_ore - - deepslate_gold_ore - - iron_ore - - deepslate_iron_ore - - coal_ore - - deepslate_coal_ore - - lapis_ore - - deepslate_lapis_ore - - mossy_cobblestone - - obsidian - - chest - - diamond_ore - - deepslate_diamond_ore - - redstone_ore - - deepslate_redstone_ore - - clay - - emerald_ore - - deepslate_emerald_ore - - ender_chest + - copper_ore + - deepslate_copper_ore + - gold_ore + - deepslate_gold_ore + - iron_ore + - deepslate_iron_ore + - coal_ore + - deepslate_coal_ore + - lapis_ore + - deepslate_lapis_ore + - mossy_cobblestone + - obsidian + - chest + - diamond_ore + - deepslate_diamond_ore + - redstone_ore + - deepslate_redstone_ore + - clay + - emerald_ore + - deepslate_emerald_ore + - ender_chest lava-obscures: false max-block-height: 64 replacement-blocks: - - stone - - oak_planks - - deepslate + - stone + - oak_planks + - deepslate update-radius: 2 use-permission: false obfuscation: @@ -87,16 +87,16 @@ entities: disable-player-crits: false door-breaking-difficulty: husk: - - HARD + - HARD vindicator: - - NORMAL - - HARD + - NORMAL + - HARD zombie: - - HARD + - HARD zombie_villager: - - HARD + - HARD zombified_piglin: - - HARD + - HARD ender-dragons-death-always-places-dragon-egg: false experience-merge-max-value: -1 mobs-can-always-pick-up-loot: @@ -175,11 +175,11 @@ entities: safe-regen-delete-range: 32 filter-bad-tile-entity-nbt-from-falling-blocks: true filtered-entity-tag-nbt-paths: - - Pos - - Motion - - SleepingX - - SleepingY - - SleepingZ + - Pos + - Motion + - SleepingX + - SleepingY + - SleepingZ iron-golems-can-spawn-in-air: false monster-spawn-max-light-level: default non-player-arrow-despawn-rate: default diff --git a/paper/run/spigot.yml b/paper/run/spigot.yml index e5d165850..8cee3205d 100644 --- a/paper/run/spigot.yml +++ b/paper/run/spigot.yml @@ -44,16 +44,16 @@ messages: advancements: disable-saving: true disabled: - - minecraft:story/disabled + - minecraft:story/disabled commands: silent-commandblock-console: false spam-exclusions: - - /skill + - /skill replace-commands: - - setblock - - summon - - testforblock - - tellraw + - setblock + - summon + - testforblock + - tellraw log: true tab-complete: 0 send-namespaced: true @@ -178,4 +178,4 @@ world-settings: config-version: 12 stats: disable-saving: false - forced-stats: {} + forced-stats: { } diff --git a/paper/src/main/java/com/badbones69/crazycrates/commands/subs/CrateBaseCommand.java b/paper/src/main/java/com/badbones69/crazycrates/commands/subs/CrateBaseCommand.java index 8d523f550..ccc19981d 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/commands/subs/CrateBaseCommand.java +++ b/paper/src/main/java/com/badbones69/crazycrates/commands/subs/CrateBaseCommand.java @@ -16,7 +16,6 @@ import com.badbones69.crazycrates.api.objects.Crate; import com.badbones69.crazycrates.api.objects.Prize; import com.badbones69.crazycrates.api.objects.other.CrateLocation; -import com.badbones69.crazycrates.api.utils.FileUtils; import com.badbones69.crazycrates.api.utils.MiscUtils; import com.badbones69.crazycrates.api.utils.MsgUtils; import com.badbones69.crazycrates.common.config.types.ConfigKeys; diff --git a/paper/src/main/java/com/badbones69/crazycrates/tasks/BukkitUserManager.java b/paper/src/main/java/com/badbones69/crazycrates/tasks/BukkitUserManager.java index e4e252f05..7154dc407 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/tasks/BukkitUserManager.java +++ b/paper/src/main/java/com/badbones69/crazycrates/tasks/BukkitUserManager.java @@ -513,7 +513,6 @@ public void loadOfflinePlayersKeys(Player player, List crates) { } - private boolean isCrateInvalid(String crateName) { return crateName.isBlank() || this.plugin.getCrateManager().getCrateFromName(crateName) == null; }