Closed BaiMoYi closed 2 months ago
This is my javascipt and the Console back me
[22:01:22 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'ceshi
javax.script.ScriptException: ReferenceError: "BukkitConsoleCommandSender" is not defined in
var haha = BukkitConsoleCommandSender;
function getMotd() { var niubi = haha.getServer(); // 获取控制台命令发送者 var kongzhitai = niubi.getConsoleSender(); // 定义要执行的命令 var zhiling = "time set day"; // 让控制台执行命令 return bukkit.dispatchCommand(kongzhitai, zhiling);
}
getMotd();
This is my