Minor bug fixes

This commit is contained in:
Cooldude2606 committed 2019-05-26 15:32:52 +01:00
1 parent 7079f84a68
commit 6432326b1b
31 files changed
+130 -174

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
local Commands = require 'expcore.commands'
local format_chat_player_name = ext_require('expcore.common','format_chat_player_name')
require 'config.command_parse_general'
require 'config.expcore-commands.parse_general'
Commands.new_command('admin-chat','Sends a message in chat that only admins can see.')
:add_param('message',false) -- the message to send in the admin chat
@@ -11,7 +11,7 @@ Commands.new_command('admin-chat','Sends a message in chat that only admins can
local player_name_colour = format_chat_player_name(player)
for _,return_player in pairs(game.connected_players) do
if return_player.admin then
return_player.print{'exp-commands.admin-chat-format',player_name_colour,message}
return_player.print{'expcom-admin-chat.format',player_name_colour,message}
end
end
return Commands.success -- prevents command complete message from showing