Mod config
This commit is contained in:
@@ -12,6 +12,10 @@ export type { EventSignal, Face, Id, ItemStack, ModInfo, Position, Season, TagAp
|
||||
|
||||
export interface ServerContext {
|
||||
mod: ModInfo;
|
||||
// the mod's settings: its config.json's "config", with the server's changes from config/<mod id>.json. the same
|
||||
// for the whole time the server runs. see docs/modding/misc/config.md
|
||||
// deno-lint-ignore no-explicit-any
|
||||
readonly config: any;
|
||||
components: ComponentRegistry; // only during setup
|
||||
commands: CommandRegistry; // only during setup
|
||||
events: { before: ServerBeforeEvents; after: ServerAfterEvents };
|
||||
|
||||
Reference in New Issue
Block a user