ScriptCraft

ScriptCraft

14.6k Downloads

Is it possible to run game commands from the javascript?

immakermatty opened this issue ยท 3 comments

commented

With the same behaviour like command block would do.

commented

use server.dispatchCommand(server.consoleSender, 'command')
or, to sudo a player, use server.dispatchCommand(server.getPlayer('username'), 'command');

commented

Yes.

commented

how?