formatting and make permission message menacing

master
Tymon 1 year ago
parent 9102608b37
commit 5e7f5ca9d5

@ -1,2 +1,2 @@
# Spleef
Spleef made with Valence. That's all it is.
Spleef made with Valence. That's all it is.

@ -9,7 +9,7 @@ pub fn run(
client: &mut Client,
uuid: Uuid,
next_state: &mut ResMut<NextState<GameState>>,
state: &Res<State<GameState>>
state: &Res<State<GameState>>,
) {
if CONFIG.operators.contains(&uuid) {
if let Some(args) = command.args {
@ -28,6 +28,10 @@ pub fn run(
));
}
} else {
client.send_message("You do not have the permission to execute this command.");
client.send_message(
"You do not have the permission to execute this command."
.bold()
.color(Color::RED),
);
}
}

@ -32,7 +32,7 @@ pub fn command_executor(
uuids: Query<&UniqueId, With<Client>>,
mut events: EventReader<CommandExecution>,
mut next_state: ResMut<NextState<GameState>>,
state: Res<State<GameState>>
state: Res<State<GameState>>,
) {
for event in events.iter() {
let cmd = Command::parse(event.command.to_string());

Loading…
Cancel
Save