Add tokio
This commit is contained in:
1 parent
c12fc46e69
commit
f74f77a1f0
25 files changed
+812
-806
No files matched your search
@@ -1,5 +1,3 @@
|
||||
use pumpkin_core::text::TextComponent;
|
||||
|
||||
use crate::commands::dispatcher::InvalidTreeError::{
|
||||
InvalidConsumptionError, InvalidRequirementError,
|
||||
};
|
||||
@@ -28,9 +26,9 @@ pub struct CommandDispatcher<'a> {
|
||||
impl<'a> CommandDispatcher<'a> {
|
||||
pub fn handle_command(&self, sender: &mut CommandSender, server: &Server, cmd: &str) {
|
||||
if let Err(err) = self.dispatch(sender, server, cmd) {
|
||||
sender.send_message(
|
||||
TextComponent::text(&err).color_named(pumpkin_core::text::color::NamedColor::Red),
|
||||
)
|
||||
// sender.send_message(
|
||||
// TextComponent::text(&err).color_named(pumpkin_core::text::color::NamedColor::Red),
|
||||
// )
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user