mirror of
https://github.com/layue13/MoonBridge.git
synced 2026-10-26 19:03:49 +00:00
24 lines
530 B
Java
24 lines
530 B
Java
package dev.strataproxy.api;
|
|
|
|
import dev.strataproxy.api.event.Events;
|
|
import java.util.Map;
|
|
import org.slf4j.Logger;
|
|
|
|
/** Services available to a loaded proxy plugin. Retained player and server handles expire after disable. */
|
|
public interface PluginContext {
|
|
Players players();
|
|
|
|
Servers servers();
|
|
|
|
Commands commands();
|
|
|
|
Events events();
|
|
|
|
Logger logger();
|
|
|
|
/** Immutable configuration assigned to this plugin by the proxy. */
|
|
default Map<String, String> settings() {
|
|
return Map.of();
|
|
}
|
|
}
|