Debuged all functions

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

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