ScriptCraft
ScriptCraft copied to clipboard
Is it possible to run game commands from the javascript?
With the same behaviour like command block would do.
Yes.
how?
use server.dispatchCommand(server.consoleSender, 'command') or, to sudo a player, use server.dispatchCommand(server.getPlayer('username'), 'command');