2020-06-22 02:44:17 +00:00
|
|
|
/// <reference types="@javatypes/nukkit-api" />
|
2020-02-23 20:01:39 +00:00
|
|
|
|
2020-05-02 16:14:47 +00:00
|
|
|
import { server } from '@ccms/api'
|
|
|
|
import { Container } from '@ccms/container'
|
2020-02-23 20:01:39 +00:00
|
|
|
|
2020-12-07 03:12:49 +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) {
|
2020-12-07 03:12:49 +00:00
|
|
|
container.bind(server.Console).toConstantValue(NukkitConsole)
|
|
|
|
container.bind(server.NativePluginManager).toConstantValue(new NukkitNativePluginManager())
|
2020-02-23 20:01:39 +00:00
|
|
|
}
|