Browse Source

Update 'gmcommand.lua'

Updated to reflect current DSP command prefix.
master
atom0s 7 years ago
parent
commit
7b6a294a6c
  1. 8
      gmcommand.lua

8
gmcommand.lua

@ -25,7 +25,7 @@
_addon.author = 'atom0s'; _addon.author = 'atom0s';
_addon.name = 'gmcommand'; _addon.name = 'gmcommand';
_addon.version = '3.0.0'; _addon.version = '3.0.1';
require 'common' require 'common'
@ -34,9 +34,9 @@ require 'common'
-- desc: Event called when a command was entered. -- desc: Event called when a command was entered.
---------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------
ashita.register_event('command', function(command, ntype) ashita.register_event('command', function(command, ntype)
-- Look for commands starting with @ -- Look for commands starting with @ or $..
if (command:startswith('@') or command:startswith('!')) then if (command:startswith('@') or command:startswith('$')) then
AshitaCore:GetChatManager():QueueCommand('$' .. command:remove(1), 1); AshitaCore:GetChatManager():QueueCommand('!' .. command:remove(1), 1);
return true; return true;
end end
return false; return false;

Loading…
Cancel
Save