diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandReload.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandReload.java index 3f019600..c5769054 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandReload.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/command/CommandReload.java @@ -2,6 +2,8 @@ package com.willfp.ecoenchants.command; import com.willfp.eco.core.command.CommandHandler; import com.willfp.eco.core.command.impl.Subcommand; +import com.willfp.eco.util.NumberUtils; +import com.willfp.eco.util.StringUtils; import com.willfp.ecoenchants.EcoEnchantsPlugin; import org.jetbrains.annotations.NotNull; @@ -18,8 +20,8 @@ public class CommandReload extends Subcommand { @Override public CommandHandler getHandler() { return (sender, args) -> { - this.getPlugin().reload(); - sender.sendMessage(this.getPlugin().getLangYml().getMessage("reloaded")); + sender.sendMessage(this.getPlugin().getLangYml().getMessage("reloaded", StringUtils.FormatOption.WITHOUT_PLACEHOLDERS) + .replace("%time%", NumberUtils.format(this.getPlugin().reloadWithTime()))); }; } } diff --git a/eco-core/core-plugin/src/main/resources/lang.yml b/eco-core/core-plugin/src/main/resources/lang.yml index 765dce40..7e3879da 100644 --- a/eco-core/core-plugin/src/main/resources/lang.yml +++ b/eco-core/core-plugin/src/main/resources/lang.yml @@ -5,7 +5,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!" + reloaded: "Reloaded! Took %time%ms" got-special: "You got a &dSpecial &fenchantment!" skip-added: "&aAdded &flore skip to item!" skip-removed: "&cRemoved &flore skip from item!"