command.js 606 B

123456789101112131415
  1. function minecraft_command(lang, msg, args, title, cmd, querystring, fragment, reaction, spoiler) {
  2. if ( args.join('') ) {
  3. if ( args[0].startsWith( '/' ) ) this.SYNTAX(lang, msg, args[0].substring(1), args.slice(1), title, cmd, querystring, fragment, reaction, spoiler);
  4. else this.SYNTAX(lang, msg, args[0], args.slice(1), title, cmd, querystring, fragment, reaction, spoiler);
  5. }
  6. else {
  7. msg.notMinecraft = true;
  8. this.WIKI.gamepedia(lang, msg, title, lang.get('minecraft.link'), cmd, reaction, spoiler, querystring, fragment);
  9. }
  10. }
  11. module.exports = {
  12. name: 'command',
  13. run: minecraft_command
  14. };