Skip to content

Commit

Permalink
自定义命令输出,彩色支持
Browse files Browse the repository at this point in the history
  • Loading branch information
0XPYEX0 committed May 13, 2024
1 parent ac7f105 commit ac16798
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import me.xpyex.plugin.xplib.bukkit.util.config.ConfigUtil;
import me.xpyex.plugin.xplib.bukkit.util.inventory.ItemUtil;
import me.xpyex.plugin.xplib.bukkit.util.language.LangUtil;
import me.xpyex.plugin.xplib.bukkit.util.strings.MsgUtil;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.Sound;
Expand All @@ -32,7 +33,7 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
}
ConfigUtil.reload(InvActions.getInstance());
InvActions.getInstance().updateServerConfig();
sender.sendMessage(LangUtil.getMessage(InvActions.getInstance(), "Reload.reload"));
sender.sendMessage(MsgUtil.getColorMsg(LangUtil.getMessage(InvActions.getInstance(), "Reload.reload")));
return;
}
if (args[0].equalsIgnoreCase("addInvs")) {
Expand Down

0 comments on commit ac16798

Please sign in to comment.