feat: 执行指令时默认以控制台身份

This commit is contained in:
2024-01-19 15:52:44 +08:00
parent d6fdcccb10
commit 88f5c9b7d9
2 changed files with 4 additions and 1 deletions

View File

@@ -404,6 +404,10 @@ public final class CoreBukkitUtils {
player.setOp(op);
break;
}
default: {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), command);
break;
}
}
} catch (CommandException e) {
e.printStackTrace();