Skip to content

Commit

Permalink
adds the /kick command
Browse files Browse the repository at this point in the history
  • Loading branch information
Alerty2 committed Oct 1, 2024
1 parent f15db29 commit f874047
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pumpkin/src/commands/cmd_kill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ pub(crate) fn init_command_tree<'a>() -> CommandTree<'a> {
argument(ARG_TARGET, consume_arg_target).execute(&|sender, server, args| {
let target = parse_arg_player(sender, server, ARG_TARGET, args)?;
target.entity.kill();
target.send_system_message(
TextComponent::text("You have been killed.").color_named(NamedColor::Red),
);

sender.send_message(
TextComponent::text("Player has been killed.").color_named(NamedColor::Blue),
Expand Down

0 comments on commit f874047

Please sign in to comment.