Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function resetLine()
- local x, y = term.getCursorPos()
- term.clearLine()
- term.setCursorPos(1, y)
- end
- local dataPath = "lib/greeter/"
- local function validateFS()
- shell.setDir("")
- if fs.exists(dataPath .. "greeter.lua") == false then
- resetLine()
- term.write("Installing copy of launcher...\n")
- shell.run("pastebin", "get XC7CerBT " .. dataPath .. "greeter.lua")
- end
- if fs.exists(dataPath .. "player_data.lua") == false then
- resetLine()
- term.write("Installing player_data.lua...")
- shell.run("pastebin", "get CAhYfSDP " .. dataPath .. "player_data.lua")
- end
- if fs.exists(dataPath .. "player_tracker.lua") == false then
- resetLine()
- term.write("Installing player_tracker.lua...")
- shell.run("pastebin", "get z60S7B4t " .. dataPath .. "player_tracker.lua")
- end
- if fs.exists(dataPath .. "player_greeter.lua") == false then
- resetLine()
- term.write("Installing player_greeter.lua...")
- shell.run("pastebin", "get 3XHgyPW4 " .. dataPath .. "player_greeter.lua")
- end
- end
- validateFS()
- multishell.launch({}, dataPath .. "player_tracker.lua")
- multishell.launch({}, dataPath .. "player_greeter.lua")
- shell.setAlias("greet", dataPath .. "greeter.lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement