diff options
Diffstat (limited to 'server/src/commands.rs')
| -rw-r--r-- | server/src/commands.rs | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs index 1d260631..05384849 100644 --- a/server/src/commands.rs +++ b/server/src/commands.rs @@ -23,9 +23,7 @@ use anyhow::Result; use clap::{Parser, ValueEnum}; use hurrycurry_bot::algos::ALGO_CONSTRUCTORS; use hurrycurry_locale::{TrError, tre, trm}; -use hurrycurry_protocol::{ - GameConfig, Hand, ItemLocation, Menu, Message, PacketC, PacketS, PlayerID, VoteSubject, -}; +use hurrycurry_protocol::{GameConfig, Menu, Message, PacketC, PacketS, PlayerID, VoteSubject}; use std::{fmt::Write, str::FromStr}; #[derive(Parser)] @@ -68,8 +66,6 @@ enum Command { }, /// Abort the current game End, - /// Send an effect - Effect { name: String }, /// Send an item message Item { name: String }, /// Send a tile message @@ -216,14 +212,6 @@ impl Server { Command::Book => { replies.push(PacketC::Menu(Menu::Book(self.priv_gamedata.book.clone()))) } - Command::Effect { name } => { - self.broadcast - .send(PacketC::Effect2 { - name, - location: ItemLocation::Player(player, Hand(0)), - }) - .ok(); - } Command::Item { name } => { let item = self .game |