From 7daeaf79f2552c8d98d0befba26320546b94c467 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Fri, 1 Oct 2021 08:54:35 +0100 Subject: [PATCH] Added %time% to reload --- .../java/com/willfp/talismans/command/CommandReload.java | 6 ++++-- eco-core/core-plugin/src/main/resources/lang.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/talismans/command/CommandReload.java b/eco-core/core-plugin/src/main/java/com/willfp/talismans/command/CommandReload.java index c1fb37f..e468734 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/talismans/command/CommandReload.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/talismans/command/CommandReload.java @@ -18,8 +18,10 @@ 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") + .replace("%time%", 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 1c4a4d8..48f376e 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!" + reloaded: "Reloaded! Took %time%ms" needs-player: "&cYou must specify a player" invalid-player: "&cInvalid player!" needs-talisman: "&cYou must specify a talisman"