This commit is contained in:
juliancoffee 2024-02-02 15:29:18 +02:00
parent 33f0c55510
commit d6a17366f1
2 changed files with 7 additions and 9 deletions

View File

@ -554,11 +554,9 @@ impl ServerChatCommand {
"Disconnects all players from the server",
Some(Admin),
),
ServerChatCommand::DropAll => cmd(
vec![],
"Drops all your items on the ground",
Some(Admin),
),
ServerChatCommand::DropAll => {
cmd(vec![], "Drops all your items on the ground", Some(Admin))
},
ServerChatCommand::Dummy => cmd(vec![], "Spawns a training dummy", Some(Admin)),
ServerChatCommand::Explosion => cmd(
vec![Float("radius", 5.0, Required)],

View File

@ -15,6 +15,7 @@ use crate::{
wiring::OutputFormula,
Server, Settings, StateExt,
};
use assets::AssetExt;
use authc::Uuid;
use chrono::{NaiveTime, Timelike, Utc};
@ -34,7 +35,8 @@ use common::{
},
invite::InviteKind,
misc::PortalData,
AdminRole, ChatType, Content, Inventory, Item, LightEmitter, WaypointArea,
AdminRole, ChatType, Content, Inventory, Item, LightEmitter, Presence, PresenceKind,
WaypointArea,
},
depot,
effect::Effect,
@ -49,7 +51,7 @@ use common::{
rtsim::{Actor, Role},
terrain::{Block, BlockKind, CoordinateConversions, SpriteKind, TerrainChunkSize},
tether::Tethered,
uid::Uid,
uid::{IdMaps, Uid},
vol::ReadVol,
weather, Damage, DamageKind, DamageSource, Explosion, LoadoutBuilder, RadiusEffect,
};
@ -677,8 +679,6 @@ fn handle_into_npc(
action: &ServerChatCommand,
) -> CmdResult<()> {
// Black magic
use crate::IdMaps;
use comp::{Presence, PresenceKind};
let id_to_drop = {
let ecs = server.state.ecs();