Pumpkin/pumpkin-config/src/networking/query.rs
Alexander Medvedev e0c91b3edc Initial Bedrock support
You can't join the World, But the base is ready
2025-06-29 00:33:44 +02:00

20 lines
406 B
Rust

use std::net::{Ipv4Addr, SocketAddr};
use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize)]
#[serde(default)]
pub struct QueryConfig {
pub enabled: bool,
pub address: SocketAddr,
}
impl Default for QueryConfig {
fn default() -> Self {
Self {
enabled: true,
address: SocketAddr::new(Ipv4Addr::new(0, 0, 0, 0).into(), 25565),
}
}
}