Changed add_tag to set_flag on commands

This commit is contained in:
Cooldude2606 committed 2019-04-09 16:16:05 +01:00
1 parent cbde97e7b0
commit e9a4382277
8 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ end
Commands.new_command('interface','Sends an innovation to be ran and returns the result.')
:add_param('innovation',false) -- the message to send in the admin chat
:enable_auto_concat()
:add_tag('admin_only',true)
:set_flag('admin_only',true)
:register(function(player,innovation,raw)
if not innovation:find('%s') and not innovation:find('return') then
-- if there are no spaces and return is not present then return is appended to the start