add selector
This commit is contained in:
parent
37e89d6dc5
commit
3122f68720
2 changed files with 10 additions and 1 deletions
|
|
@ -1,5 +1,14 @@
|
||||||
pub struct Command(String);
|
pub struct Command(String);
|
||||||
|
|
||||||
|
pub enum Selector {
|
||||||
|
NearestPlayer, // @p
|
||||||
|
RandomPlayer, // @r
|
||||||
|
AllPlayers, // @a
|
||||||
|
AllEntities, // @e
|
||||||
|
Executor, // @s
|
||||||
|
NearestEntity // @n
|
||||||
|
}
|
||||||
|
|
||||||
mod say;
|
mod say;
|
||||||
mod list;
|
mod list;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@ mod client;
|
||||||
pub use client::{RconClient, RconError, RconResult};
|
pub use client::{RconClient, RconError, RconResult};
|
||||||
|
|
||||||
mod command;
|
mod command;
|
||||||
pub use command::Command;
|
pub use command::{Command, Selector};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue