diff --git a/src/command/mod.rs b/src/command/mod.rs index e9c5ad9..fbed955 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -1,5 +1,14 @@ pub struct Command(String); +pub enum Selector { + NearestPlayer, // @p + RandomPlayer, // @r + AllPlayers, // @a + AllEntities, // @e + Executor, // @s + NearestEntity // @n +} + mod say; mod list; diff --git a/src/lib.rs b/src/lib.rs index b80ff33..2a184a5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,4 +2,4 @@ mod client; pub use client::{RconClient, RconError, RconResult}; mod command; -pub use command::Command; \ No newline at end of file +pub use command::{Command, Selector}; \ No newline at end of file