some improvements mabe mabe

This commit is contained in:
Chayapak 2023-05-05 07:41:56 +07:00
parent 101551ce20
commit 463d62ea2f

View file

@ -142,8 +142,9 @@ public class CommandHandlerPlugin {
final String stackTrace = ExceptionUtils.getStackTrace(exception);
if (inGame) {
if (bot.options().useChat() || !bot.options().useCore()) return Component.text(exception.toString()).color(NamedTextColor.RED);
return Component
.text("An error occurred while trying to execute the command, hover here for more details", NamedTextColor.RED)
.text("An error occurred while trying to execute the command, hover here for stacktrace", NamedTextColor.RED)
.hoverEvent(
HoverEvent.showText(
Component