A bare-bones starter template for creating Frostfire Forge plugins.
Listens for PLAYER_CHAT events and logs every chat message to the server console.
Frostfire-Forge-Plugin-Template/
manifest.json - Plugin metadata (name, version, entry point, provides)
types.d.ts - Plugin-local type declarations
src/
index.ts - Entry point (register/unregister)
Drop this folder into the Frostfire Forge engine's src/plugins/ directory. The plugin loader scans for manifest.json files in subdirectories and loads them on server start.
const plugin: GamePlugin = {
async register(engine: EngineAPI, manifest: PluginManifest) {
// Subscribe to engine events here
},
async unregister() {
// Cleanup here
},
};
export default plugin;See src/systems/events.ts for the full list of events your plugin can hook into (PLAYER_CHAT, PLAYER_DEATH, SPELL_CAST, WARP, MAP_ENTER, etc.).