aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/command.rs
blob: 520c8a5281b02803c0714920b0da458d750fb52a (plain)
1
2
3
4
5
6
7
8
9
10
use crate::{
    context::command_context::CommandContext,
    exceptions::command_syntax_exception::CommandSyntaxException,
};

pub const SINGLE_SUCCESS: i32 = 1;

pub trait Command<S, T> {
    fn run(&self, context: &mut CommandContext<S, T>) -> Result<i32, CommandSyntaxException>;
}