Debuged all functions

This commit is contained in:
Cooldude2606 committed 2019-04-09 20:53:17 +01:00
1 parent d7474947f0
commit 73a319b220
9 files changed
+109 -50

No files matched your search

+1 -1
View File
@@ -516,7 +516,7 @@ end
-- @tparam[opt] value any the value to return to the player, if nil then only success message returned
-- @treturn Commands.defines.success return this to the command handler to prevent two success messages
function Commands.success(value)
if value then player_return(value) end
if value ~= nil then player_return(value) end
player_return({'expcore-commands.command-ran'},'cyan')
return Commands.defines.success
end