diff options
Diffstat (limited to 'azalea-brigadier/src/command.rs')
| -rw-r--r-- | azalea-brigadier/src/command.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/azalea-brigadier/src/command.rs b/azalea-brigadier/src/command.rs index 520c8a52..dcbf3ffd 100644 --- a/azalea-brigadier/src/command.rs +++ b/azalea-brigadier/src/command.rs @@ -2,9 +2,11 @@ use crate::{ context::command_context::CommandContext, exceptions::command_syntax_exception::CommandSyntaxException, }; +use dyn_clonable::*; pub const SINGLE_SUCCESS: i32 = 1; -pub trait Command<S, T> { +#[clonable] +pub trait Command<S, T>: Clone { fn run(&self, context: &mut CommandContext<S, T>) -> Result<i32, CommandSyntaxException>; } |
