fix: netty inject error

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-04-24 13:05:46 +08:00
parent d53287fc51
commit 8c6b75ff10
4 changed files with 35 additions and 28 deletions

View File

@@ -19,7 +19,7 @@ export class BukkitEvent extends event.Event {
}
getJarFile(resource: string) {
return super.getJarFile('org/bukkit/Bukkit.class')
return super.getJarFile('org/bukkit/Bukkit.class', Bukkit.class.classLoader)
}
isValidEvent(clazz: any): boolean {
// 继承于 org.bukkit.event.Event