GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use translated message for server shutdown · BuggStream/feather@c3bace4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • server/src
    • shutdown.rs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎server/src/shutdown.rs‎

Copy file name to clipboardExpand all lines: server/src/shutdown.rs
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Shutdown behavior.
22
use anyhow::Context;
33
use feather_core::network::packets::DisconnectPlay;
4-
use feather_core::text::{Text, TextRoot};
4+
use feather_core::text::{TextRoot, TextValue};
55
use feather_server_chunk::chunk_worker::Request;
66
use feather_server_chunk::{save_chunk_at, ChunkWorkerHandle};
77
use feather_server_lighting::LightingWorkerHandle;
@@ -20,7 +20,10 @@ pub fn init(tx: crossbeam::Sender<()>) {
2020
pub fn disconnect_players(world: &World) -> anyhow::Result<()> {
2121
<Read<Network>>::query().for_each(world.inner(), |network| {
2222
let packet = DisconnectPlay {
23-
reason: TextRoot::from(Text::from("Server closed")).into(),
23+
reason: TextRoot::from(TextValue::translate(
24+
"multiplayer.disconnect.server_shutdown",
25+
))
26+
.into(),
2427
};
2528

2629
network.send(packet);

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.