From 032f4d98aeadb8c5179ffd7c33c135227967c961 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Wed, 25 Sep 2019 10:10:35 +0800 Subject: [PATCH] fix: type instance error Signed-off-by: MiaoWoo --- packages/bukkit/src/console.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }