2019-11-07 07:02:05 +00:00
|
|
|
/// <reference types="@ms/types/dist/typings/bukkit" />
|
2019-09-19 10:58:01 +00:00
|
|
|
|
2020-01-31 18:46:06 +00:00
|
|
|
import { server, command, event, task } from '@ms/api'
|
|
|
|
import { Container } from '@ms/container'
|
2019-09-07 04:23:15 +00:00
|
|
|
|
2019-09-19 10:58:01 +00:00
|
|
|
import { BukkitConsole } from './console';
|
2019-09-21 07:04:25 +00:00
|
|
|
import { BukkitEvent } from './event';
|
2020-01-14 09:44:20 +00:00
|
|
|
import { BukkitServer } from './server';
|
2019-09-10 09:21:27 +00:00
|
|
|
import { BukkitCommand } from './command';
|
2019-09-21 07:04:25 +00:00
|
|
|
import { BukkitTaskManager } from './task';
|
2019-09-07 04:23:15 +00:00
|
|
|
|
2020-01-31 18:46:06 +00:00
|
|
|
export default function BukkitImpl(container: Container) {
|
|
|
|
container.bind(server.Console).toConstantValue(BukkitConsole);
|
|
|
|
container.bind(event.Event).to(BukkitEvent).inSingletonScope();
|
|
|
|
container.bind(server.Server).to(BukkitServer).inSingletonScope();
|
|
|
|
container.bind(command.Command).to(BukkitCommand).inSingletonScope();
|
|
|
|
container.bind(task.TaskManager).to(BukkitTaskManager).inSingletonScope();
|
|
|
|
}
|