Implement @a support for c.send
This commit is contained in:
parent
cb65edf815
commit
8965e533d6
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
const parse = require("../util/chatparse.js")
|
||||
class Command{
|
||||
constructor (uuid,user,nick,cmd,prefix,bot,verify){
|
||||
this.send = (uuid,text)=>{bot.tellraw(uuid,text)};
|
||||
this.send = (text,uuid)=>{bot.tellraw(uuid?uuid:"@a",text)};
|
||||
this.reply = text => bot.tellraw(uuid,text);
|
||||
this.uuid = uuid;
|
||||
this.username = user;
|
||||
|
|
Loading…
Reference in a new issue