add selector

This commit is contained in:
Raptorox 2026-07-28 17:24:10 +02:00
parent 37e89d6dc5
commit 3122f68720
No known key found for this signature in database
GPG key ID: 8B3556FC3ED1F6D8
2 changed files with 10 additions and 1 deletions

View file

@ -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;

View file

@ -2,4 +2,4 @@ mod client;
pub use client::{RconClient, RconError, RconResult};
mod command;
pub use command::Command;
pub use command::{Command, Selector};