aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/command.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-01-09 22:33:45 -0600
committermat <github@matdoes.dev>2022-01-09 22:33:45 -0600
commit315f2258190b33c63df7797a97178019f5aea02b (patch)
tree1ec5f467e7bd42f7aed3aaadbcbc226f8a6ce4f2 /azalea-brigadier/src/command.rs
parentd56f60c05f316ab4cc37ebe7a9ad4caf91a75de6 (diff)
downloadazalea-drasl-315f2258190b33c63df7797a97178019f5aea02b.tar.xz
add some more stuff from brigadier
Diffstat (limited to 'azalea-brigadier/src/command.rs')
-rw-r--r--azalea-brigadier/src/command.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/azalea-brigadier/src/command.rs b/azalea-brigadier/src/command.rs
index e69de29b..a76454b7 100644
--- a/azalea-brigadier/src/command.rs
+++ b/azalea-brigadier/src/command.rs
@@ -0,0 +1,10 @@
+use crate::{
+ context::command_context::CommandContext,
+ exceptions::command_syntax_exception::CommandSyntaxException,
+};
+
+pub const SINGLE_SUCCESS: i32 = 1;
+
+pub trait Command<S> {
+ fn run(&self, context: &mut CommandContext<S>) -> Result<i32, CommandSyntaxException>;
+}