ms/packages/sponge/src/plugin.ts

13 lines
321 B
TypeScript
Raw Normal View History

import { server } from '@ccms/api'
const Sponge = org.spongepowered.api.Sponge
export class SpongeNativePluginManager extends server.NativePluginManager {
has(name: string) {
return !!this.get(name)
}
get(name: string) {
return Sponge.getPluginManager().getPlugin(name).orElse(null)
}
}