From 74c20016f8179339bc450b04d4bf73b92d2dfab4 Mon Sep 17 00:00:00 2001 From: Navoei Date: Wed, 23 Jul 2025 12:55:59 -0500 Subject: [PATCH] Lang changes --- .../command/SubCommands/SetHornCooldownSubCommand.java | 3 +-- .../java/me/Navoei/customdiscsplugin/language/Lang.java | 6 +++--- src/main/resources/lang.yml | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/SetHornCooldownSubCommand.java b/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/SetHornCooldownSubCommand.java index 061ecdb..a64ac24 100644 --- a/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/SetHornCooldownSubCommand.java +++ b/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/SetHornCooldownSubCommand.java @@ -19,7 +19,6 @@ import org.bukkit.inventory.meta.ItemMeta; import org.bukkit.persistence.PersistentDataContainer; import org.bukkit.persistence.PersistentDataType; -import java.util.Objects; import java.util.Optional; public class SetHornCooldownSubCommand extends CommandAPICommand { @@ -41,7 +40,7 @@ public class SetHornCooldownSubCommand extends CommandAPICommand { private int onCommandPlayer(Player player, CommandArguments arguments) { if (!TypeChecker.isCustomGoatHornPlayer(player)) { - player.sendMessage(LegacyComponentSerializer.legacyAmpersand().deserialize(Lang.PREFIX + Lang.NOT_HOLDING_MODIFIED_GOATHORN.toString())); + player.sendMessage(LegacyComponentSerializer.legacyAmpersand().deserialize(Lang.PREFIX + Lang.NOT_HOLDING_CUSTOM_GOAT_HORN.toString())); return 0; } diff --git a/src/main/java/me/Navoei/customdiscsplugin/language/Lang.java b/src/main/java/me/Navoei/customdiscsplugin/language/Lang.java index dc2d1c5..b1f4c87 100644 --- a/src/main/java/me/Navoei/customdiscsplugin/language/Lang.java +++ b/src/main/java/me/Navoei/customdiscsplugin/language/Lang.java @@ -19,9 +19,9 @@ public enum Lang { DISC_CONVERTED("disc-converted", "&aConverted disc to new format! &fThis is due to changes in newer Minecraft versions which introduced &ToolTipDisplay&f."), INVALID_RANGE("invalid-range","&rYou need to chose a range between 1 and %range_value%"), CREATE_CUSTOM_RANGE("create-custom-range", "&7Your range is set to: &a\"%custom_range%\"."), - NOT_HOLDING_MODIFIED_GOATHORN("not-holding-modified-goathorn", "&cYou must hold a modified goat horn in your main hand."), - INVALID_COOLDOWN("invalid-cooldown","&cYou need to chose a cooldown between 1 and %cooldown_value% (in ticks)"), - CREATE_CUSTOM_GOAT_COOLDOWN("create-custom-goat-cooldown", "&7Your goat horn cooldown is set to: &a\"%custom_goat_cooldown%\"."), + NOT_HOLDING_CUSTOM_GOAT_HORN("not-holding-custom-goathorn", "&cYou must hold a custom goat horn in your main hand."), + INVALID_COOLDOWN("invalid-cooldown","&cYou need to chose a cooldown between 1 and %cooldown_value% (in ticks)."), + CREATE_CUSTOM_GOAT_COOLDOWN("create-custom-goat-cooldown", "&7Your goat horn cooldown is set to: &a\"%custom_goat_cooldown%\" ticks."), CUSTOM_MUSIC_DISABLED("custom-music-disabled", "&7Custom music discs are disabled in the configuration."), CUSTOM_HEAD_DISABLED("custom-head-disabled", "&7Custom player heads are disabled in the configuration."), CUSTOM_HORN_DISABLED("custom-horn-disabled", "&7Custom goat horns are disabled in the configuration."); diff --git a/src/main/resources/lang.yml b/src/main/resources/lang.yml index f13b8bc..e344074 100644 --- a/src/main/resources/lang.yml +++ b/src/main/resources/lang.yml @@ -14,9 +14,9 @@ now-playing: '&6Now playing: %song_name%' disc-converted: '&aConverted disc to new format! &fThis is due to changes in newer Minecraft versions which introduced &7ToolTipDisplay&f.' invalid-range: '&cYou need to chose a range between 1 and %range_value%' create-custom-range: '&7Your range is set to: &a"%custom_range%".' -not-holding-modified-goathorn: '&cYou must hold a modified goat horn in your main hand.' -invalid-cooldown: '&cYou need to chose a cooldown between 1 and %cooldown_value% (in ticks)' -create-custom-goat-cooldown: '&7Your goat horn cooldown is set to: &a"%custom_goat_cooldown%".' +not-holding-custom-goathorn: '&cYou must hold a custom goat horn in your main hand.' +invalid-cooldown: '&cYou need to chose a cooldown between 1 and %cooldown_value% (in ticks).' +create-custom-goat-cooldown: '&7Your goat horn cooldown is set to: &a"%custom_goat_cooldown%" ticks.' custom-music-disabled: '&7Custom music discs are disabled in the configuration.' custom-head-disabled: '&7Custom player heads are disabled in the configuration.' custom-horn-disabled: '&7Custom goat horns are disabled in the configuration.' \ No newline at end of file