diff --git a/packages/bukkit/src/console.ts b/packages/bukkit/src/console.ts index 8c8735ef..8c88377d 100644 --- a/packages/bukkit/src/console.ts +++ b/packages/bukkit/src/console.ts @@ -4,7 +4,7 @@ let Bukkit = org.bukkit.Bukkit; export class BukkitConsole extends MiaoScriptConsole { sender(sender, ...args) { - if (!(sender instanceof org.bukkit.command.CommandSender)) { + if (!(sender instanceof Java.type('org.bukkit.command.CommandSender'))) { this.error("第一个参数未实现 org.bukkit.command.CommandSender 无法发送消息!") return; }