Advertisement
KidBrine

UniRaid

Apr 15th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. local Args, Orgs = ...
  2. if Args ~= nil then
  3.   if Args == "send" then
  4.     if Orgs ~= nil then
  5.       shell.run("/RaidPro/RaidSend "..Orgs)
  6.     else
  7.       error("Expected Raid send <filename>")
  8.     end
  9.   elseif Args == "del" then
  10.     if Orgs ~= nil then
  11.       shell.run("/RaidPro/RaidDel "..Orgs)
  12.     else
  13.       error("Expected Raid del <filename>")
  14.     end
  15.   elseif Args == "dir" then
  16.     shell.run("/RaidPro/RaidDir")
  17.   elseif Args == "pull" then
  18.     if Orgs ~= nil then
  19.       shell.run("/RaidPro/RaidPull "..Orgs)
  20.     else
  21.       error("Expected Raid <directoryname>")
  22.     end
  23.   end
  24. else
  25.   error("Expected Raid send,pull,del, or dir")
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement