1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00
azalea/azalea-brigadier/src/command.rs
2022-01-13 00:43:09 +00:00

12 lines
321 B
Rust

use crate::{
context::command_context::CommandContext,
exceptions::command_syntax_exception::CommandSyntaxException,
};
use dyn_clonable::*;
pub const SINGLE_SUCCESS: i32 = 1;
#[clonable]
pub trait Command<S>: Clone {
fn run(&self, context: &mut CommandContext<S>) -> Result<i32, CommandSyntaxException>;
}