1.0.1 • Published 10 years ago

voxel-commands v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

voxel-commands

A few basic commands for voxel-console (voxel.js plugin)

  • .pos x y z -- set avatar position (requires voxel-player)
  • .home -- set avatar position to home
  • .item name [count tags] -- give item to player inventory (requires voxel-carry)
  • .clear - wipe inventory (requires voexl-carry)
  • .block name data -- set/get block, optionally supports voxel-blockdata
  • .plugins -- list plugins from voxel-plugins
  • .enable plugin - enable a plugin
  • .disable plugin - disable a plugin

API

var commands = game.plugins.get('voxel-commands')

// other plugins can register their own custom commands
commands.registerCommand(name, handler, usage, help);
commands.unregisterCommand(name, handler);

commands.isConnectedToServer = true; // suppress 'Not connected to server' chat messages

License

MIT

1.0.1

10 years ago

1.0.0

10 years ago

0.4.0

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.0

12 years ago

0.1.0

12 years ago