diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/reforges/commands/CommandReload.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/reforges/commands/CommandReload.kt index 2bda176..8153ebd 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/reforges/commands/CommandReload.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/reforges/commands/CommandReload.kt @@ -3,12 +3,13 @@ package com.willfp.reforges.commands import com.willfp.eco.core.EcoPlugin import com.willfp.eco.core.command.CommandHandler import com.willfp.eco.core.command.impl.Subcommand +import com.willfp.eco.util.StringUtils class CommandReload(plugin: EcoPlugin) : Subcommand(plugin, "reload", "reforges.command.reload", false) { override fun getHandler(): CommandHandler { return CommandHandler { sender, _ -> - plugin.reload() - sender.sendMessage(plugin.langYml.getMessage("reloaded")) + sender.sendMessage(plugin.langYml.getMessage("reloaded", StringUtils.FormatOption.WITHOUT_PLACEHOLDERS) + .replace("%time%", plugin.reloadWithTime().toString())) } } } \ No newline at end of file diff --git a/eco-core/core-plugin/src/main/resources/lang.yml b/eco-core/core-plugin/src/main/resources/lang.yml index 940192f..4305f2d 100644 --- a/eco-core/core-plugin/src/main/resources/lang.yml +++ b/eco-core/core-plugin/src/main/resources/lang.yml @@ -3,7 +3,7 @@ messages: no-permission: "&cYou don't have permission to do this!" not-player: "&cThis command must be run by a player" invalid-command: "&cUnknown subcommand!" - reloaded: "Reloaded! (Restart if you're removed reforges!)" + reloaded: "Reloaded! (Restart if you're removed reforges!) Took %time%ms" insufficient-money: "&cYou don't have enough money for this!" insufficient-xp: "&cYou don't have enough xp levels for this!" applied-reforge: "Applied %reforge%&r reforge!"