手冊:Level.executeCommand

出自Minecraft基岩版开发Wiki

語法[編輯]

Level.executeCommand(par1String, par2boolean);

參數[編輯]

參數一
String型別 指令(不加「/」,執行者為伺服器)
參數二
boolean型別 未知意義

效果[編輯]

執行指令

參考[編輯]

Level.executeCommand("time set day", 0);
//设置时间为白天
Level.executeCommand("me HelloWorld", 0);
//聊天栏输出“ * 服务器 HelloWorld”

Template:ModPE