some improvements mabe mabe
This commit is contained in:
parent
101551ce20
commit
463d62ea2f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue