ms/packages/sponge/src/index.ts

20 lines
575 B
TypeScript
Raw Normal View History

/// <reference types="@javatypes/sponge-api" />
import { server } from '@ccms/api'
import { Container } from '@ccms/container'
import { SpongeConsole } from './console'
import './chat'
import './task'
import './event'
import './server'
import { SpongeNativePluginManager } from './plugin'
import './command'
import './channel'
import './particle'
export default function SpongeImpl(container: Container) {
container.bind(server.Console).toConstantValue(SpongeConsole)
container.rebind(server.NativePluginManager).toConstantValue(new SpongeNativePluginManager())
}