aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/command.rs
blob: a76454b75b9e7db17dff21620bc6d5898aaf5254 (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> {
    fn run(&self, context: &mut CommandContext<S>) -> Result<i32, CommandSyntaxException>;
}