From 428df89ed1f8c65395e765c0f52f3931e1389166 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 18 Jun 2022 11:44:11 +0100 Subject: [PATCH] Improved PR --- .../main/kotlin/com/willfp/ecopets/commands/CommandGiveXP.kt | 4 ++-- eco-core/core-plugin/src/main/resources/lang.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/commands/CommandGiveXP.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/commands/CommandGiveXP.kt index dc6a7d2..d08c159 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/commands/CommandGiveXP.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/ecopets/commands/CommandGiveXP.kt @@ -38,7 +38,7 @@ class CommandGiveXP(plugin: EcoPlugin) : Subcommand(plugin, "givexp", "ecopets.c return } if (!player.hasPet(pet)) { - sender.sendMessage(plugin.langYml.getMessage("doenst-have-pet")) + sender.sendMessage(plugin.langYml.getMessage("doesnt-have-pet")) return } player.givePetExperience( @@ -46,7 +46,7 @@ class CommandGiveXP(plugin: EcoPlugin) : Subcommand(plugin, "givexp", "ecopets.c args[1].toDouble() ) sender.sendMessage( - plugin.langYml.getMessage("give-xp", StringUtils.FormatOption.WITHOUT_PLACEHOLDERS) + plugin.langYml.getMessage("gave-xp", StringUtils.FormatOption.WITHOUT_PLACEHOLDERS) .replace("%player%", player.savedDisplayName) .replace("%xp%", args[1]) .replace("%pet%", pet.name) diff --git a/eco-core/core-plugin/src/main/resources/lang.yml b/eco-core/core-plugin/src/main/resources/lang.yml index 54ce6b2..8115451 100644 --- a/eco-core/core-plugin/src/main/resources/lang.yml +++ b/eco-core/core-plugin/src/main/resources/lang.yml @@ -9,7 +9,7 @@ messages: on-cooldown: "&cThis effect is on cooldown! &fTime left: &a%seconds% seconds" cannot-transmit: "&cYou can't transmit here!" needs-player: "&cYou must specify a player!" - give-xp: "&fYou have given &a%xp% &fXP to %player%'s %pet%&f!" + gave-xp: "&fYou have given &a%xp% &fXP to %player%'s %pet%&f!" needs-pet: "&cYou must specify a pet!" need-amount: "&cYou must specify a amount" invalid-player: "&cInvalid player!"