Change message to use ComponentBuilder
This commit is contained in:
parent
d3159fe6ca
commit
6c795a25ff
@ -46,7 +46,7 @@ public class CommandAlertRaw extends Command
|
|||||||
create() );
|
create() );
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
sender.sendMessage(ChatColor.RED + "An error occurred while parsing your message. " + e.getMessage());
|
sender.sendMessage(new ComponentBuilder( "An error occurred while parsing your message: " ).color( ChatColor.RED ).append( e.getMessage() ).create() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user