Posted 14 August 2012 - 09:18 PM
100% Configurable
It uses string patterns as separation for the name, cmd, etc.
Its not really 100% configurable because you need to know string patterns in order to mess with the parameters.
It uses string patterns as separation for the name, cmd, etc.
for k, v in pairs(rs.getSides()) do
rednet.open(v)
end
while true do
id, msg = rednet.receive()
name, cmd, parms = msg:match("^(%S*) (%S*) (.*)") -- Name = Servername, Cmd = Command to server, parms = paramers
if name == "server" then -- server name
print(name)
if cmd == "joseph" then
print(cmd)
else
print("Unknown Command")
end
end
end
I will post a tutorial on how to configure this upon request.Its not really 100% configurable because you need to know string patterns in order to mess with the parameters.