aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/command.rs
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2022-01-12 00:40:43 +0000
committerUbuntu <github@matdoes.dev>2022-01-12 00:40:43 +0000
commit270507736af57aae6801dc9eb3c3132139d0d07b (patch)
treea8fa1d1b8d038eb9d7e2061342026d23ddbd9027 /azalea-brigadier/src/command.rs
parentcc4fe62fc82842e0bde628437a45d55c6a82f1f3 (diff)
downloadazalea-drasl-270507736af57aae6801dc9eb3c3132139d0d07b.tar.xz
a
Diffstat (limited to 'azalea-brigadier/src/command.rs')
-rw-r--r--azalea-brigadier/src/command.rs4
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>;
}