mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-17 04:41:21 +01:00
Added %time% placeholder to reload message
This commit is contained in:
parent
4d7e1ee20f
commit
9adeaef96d
@ -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())));
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user