ms/packages/nukkit/src/index.ts

17 lines
518 B
TypeScript
Raw Normal View History

/// <reference types="@javatypes/nukkit-api" />
2020-02-23 20:01:39 +00:00
import { server } from '@ccms/api'
import { Container } from '@ccms/container'
2020-02-23 20:01:39 +00:00
import { NukkitConsole } from './console'
import './task'
import './event'
import './server'
import { NukkitNativePluginManager } from './plugin'
import './command'
2020-02-23 20:01:39 +00:00
export default function NukkitImpl(container: Container) {
container.bind(server.Console).toConstantValue(NukkitConsole)
container.bind(server.NativePluginManager).toConstantValue(new NukkitNativePluginManager())
2020-02-23 20:01:39 +00:00
}