aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-03-10 23:38:19 +0100
committermetamuffin <metamuffin@disroot.org>2026-03-10 23:38:22 +0100
commitc49f0a8afd405e5fe8f0ed79c034f9a9b80674cf (patch)
tree0e143d70c658858f2294da4cf7666618c75e46de
parent59c25d65ce9b61e6eb964adf0934127df9848e9d (diff)
downloadhurrycurry-c49f0a8afd405e5fe8f0ed79c034f9a9b80674cf.tar
hurrycurry-c49f0a8afd405e5fe8f0ed79c034f9a9b80674cf.tar.bz2
hurrycurry-c49f0a8afd405e5fe8f0ed79c034f9a9b80674cf.tar.zst
remove editor redirect feature
-rw-r--r--server/src/commands.rs15
-rw-r--r--server/src/server.rs2
2 files changed, 0 insertions, 17 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs
index ea0599dc..36c7ccde 100644
--- a/server/src/commands.rs
+++ b/server/src/commands.rs
@@ -102,11 +102,6 @@ enum Command {
message_id: String,
arguments: Vec<String>,
},
- /// Return to the map editor
- #[clap(alias = "e", alias = "editor")]
- Edit,
- #[clap(hide = true)]
- SetEditorAddress { url: String },
/// Set your players hand item (CHEAT)
#[cfg(feature = "cheats")]
#[clap(alias = "give")]
@@ -380,16 +375,6 @@ impl Server {
timeout: None,
});
}
- Command::Edit => {
- let addr = self
- .editor_address
- .clone()
- .ok_or(tre!("s.error.not_editor_session"))?;
- replies.push(PacketC::Redirect { uri: vec![addr] });
- }
- Command::SetEditorAddress { url } => {
- self.editor_address = Some(url);
- }
Command::Demands => {
replies.push(PacketC::ServerMessage {
message: Message::Text(
diff --git a/server/src/server.rs b/server/src/server.rs
index 69ef89fe..27ad86a7 100644
--- a/server/src/server.rs
+++ b/server/src/server.rs
@@ -82,7 +82,6 @@ pub struct Server {
pub player_inactivity_timers: HashMap<PlayerID, f32>,
pub packet_out: VecDeque<PacketC>,
pub scoreboard: ScoreboardStore,
- pub editor_address: Option<String>,
}
impl Server {
@@ -113,7 +112,6 @@ impl Server {
last_movement_update: HashMap::default(),
player_inactivity_timers: HashMap::new(),
scoreboard: ScoreboardStore::load().context("Failed to load scoreboards")?,
- editor_address: None,
paused: false,
})
}