diff --git a/Emas/Emas.js b/Emas/Emas.js index 5083d2af5c..df73fa3052 100644 --- a/Emas/Emas.js +++ b/Emas/Emas.js @@ -3,7 +3,7 @@ var Emas = Emas || (function() { 'use strict'; - var version = 0.4, + var version = 0.5, ch = function (c) { var entities = { @@ -36,7 +36,10 @@ var Emas = Emas || (function() { +'Emas v'+version +'' +'
' - +'

Emas provides the !emas command, which looks like /emas but works for everyone, as well as the !as command, which looks like /as but works for everyone.

' + +'

Emas provides the !emas command, which looks like /emas but ' + +'works for everyone, as well as the !as command, which looks like ' + +'/as but works for everyone. !w, !r, !gr as ' + +'well.

' +'
' +'Commands' +'
' @@ -61,6 +64,39 @@ var Emas = Emas || (function() { +'' +'
' +'' + +'
' + +'!w '+ch('<')+'message'+ch('>')+'' + +'
' + +'

Sends a message in the same manner as /w does.

' + +'' + +'
' + +'
' + +'
' + +'!r '+ch('<')+'message'+ch('>')+'' + +'
' + +'

Sends a message in the same manner as /r does.

' + +'' + +'
' + +'
' + +'
' + +'!gr '+ch('<')+'message'+ch('>')+'' + +'
' + +'

Sends a message in the same manner as /gr does.

' + +'' + +'
' + +'
' +'' ); }, @@ -89,6 +125,28 @@ var Emas = Emas || (function() { sendChat('','/as '+_.rest(args).join(' ')); } break; + case '!w': + if(1 === args.length) { + showHelp(who); + } else { + sendChat(msg.who,'/w '+who+' '+_.rest(args,2).join(' ')); + sendChat(msg.who,'/w '+_.rest(args).join(' ')); + } + break; + case '!r': + if(1 === args.length) { + showHelp(who); + } else { + sendChat('','/r '+_.rest(args).join(' ')); + } + break; + case '!gr': + if(1 === args.length) { + showHelp(who); + } else { + sendChat('','/gr '+_.rest(args).join(' ')); + } + break; } }, diff --git a/Emas/package.json b/Emas/package.json index c6fe624982..bceaee54ba 100644 --- a/Emas/package.json +++ b/Emas/package.json @@ -1,6 +1,6 @@ { "name": "emas", - "version": "0.4", + "version": "0.5", "description": "Provides player !emas and !as commands.", "authors": "The Aaron", "roll20userid": "104025",