Add damage types & damage command (#526)

This commit is contained in:
drakeerv
2025-02-02 05:22:49 -05:00
committed by GitHub
parent 1729f58a6f
commit 09d6eb6da2
13 changed files with 467 additions and 12 deletions

View File

@@ -10,9 +10,9 @@ use crate::world::World;
use args::ConsumedArgs;
use async_trait::async_trait;
use commands::{
ban, banip, banlist, clear, deop, experience, fill, gamemode, give, help, kick, kill, list, me,
msg, op, pardon, pardonip, playsound, plugin, plugins, pumpkin, say, setblock, stop, summon,
teleport, time, title, worldborder,
ban, banip, banlist, clear, damage, deop, experience, fill, gamemode, give, help, kick, kill,
list, me, msg, op, pardon, pardonip, playsound, plugin, plugins, pumpkin, say, setblock, stop,
summon, teleport, time, title, worldborder,
};
use dispatcher::CommandError;
use pumpkin_util::math::vector3::Vector3;
@@ -143,6 +143,7 @@ pub fn default_dispatcher() -> CommandDispatcher {
dispatcher.register(pardon::init_command_tree(), PermissionLvl::Three);
dispatcher.register(pardonip::init_command_tree(), PermissionLvl::Three);
dispatcher.register(experience::init_command_tree(), PermissionLvl::Two);
dispatcher.register(damage::init_command_tree(), PermissionLvl::Two);
dispatcher
}