Why not replace:
Code:
else
print("NLoot: Invalid Command, Input '/nl help' to get a list of available commands")
return
with:
Code:
else
-- if required check if input is a player in your group/raid
TableOfPlayers[input] = true
-- else
-- print("NLoot: Invalid Command, Input '/nl help' to get a list of available commands")
-- end
return
Otherwise:
Code:
else
local command, param1 = string.split(" ", input)
if command = "hm" then -- hm for hasmount
TableOfPlayers[param1] = true
else
print("NLoot: Invalid Command, Input '/nl help' to get a list of available commands")
end