-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I couldn't use the javascript to make console send command. (Could you help me?) #80
Comments
This is my javascipt and the Console back me |
[22:01:22 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'ceshi |
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
The text was updated successfully, but these errors were encountered: