mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
fix: use networking.java.online_mode for online mode detection (#2404)
This commit is contained in:
@@ -310,12 +310,7 @@ impl pumpkin::plugin::server::HostServer for PluginHostState {
|
||||
.as_ref()
|
||||
.ok_or_else(|| wasmtime::Error::msg("Server not available"))?;
|
||||
|
||||
Ok(server
|
||||
.advanced_config
|
||||
.networking
|
||||
.java
|
||||
.authentication
|
||||
.enabled)
|
||||
Ok(server.advanced_config.networking.java.online_mode)
|
||||
}
|
||||
|
||||
async fn get_motd(&mut self, _rep: Resource<Server>) -> wasmtime::Result<String> {
|
||||
|
||||
Reference in New Issue
Block a user