summaryrefslogtreecommitdiff
path: root/server/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r--server/src/commands.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs
index d6ca8b25..b06d9261 100644
--- a/server/src/commands.rs
+++ b/server/src/commands.rs
@@ -171,13 +171,7 @@ impl Server {
)
}
Command::Effect { name } => {
- self.tx
- .send(PacketC::Communicate {
- player,
- message: Some(Message::Effect(name)),
- timeout: None,
- })
- .ok();
+ self.tx.send(PacketC::Effect { name, player }).ok();
}
Command::Item { name } => {
let item = self