fix: type instance error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
fdf1088564
commit
1bd35aef6d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user