Posted 17 May 2014 - 06:19 PM
Hey everyone, i am trying to disable editing among other things and i did a startup file:
The .forbidden file:
Everything works, but when someone uses the disk+boot combo: bye bye aliases…
if i type the command:
function disable( cmd )
shell.setAlias(cmd, ".forbidden")
end
disable("cd")
disable("rm")
disable("alias")
disable("copy")
disable("edit")
disable("exit")
disable("list")
disable("lua")
disable("mkdir")
disable("monitor")
disable("move")
disable("rename")
disable("shell")
disable("pastebin")
disable("cp")
disable("dir")
disable("background")
disable("foreground")
disable("bg")
disable("fg")
disable("ls")
disable("mv")
disable("move")
disable("sh")
disable("rs")
disable("redstone")
The .forbidden file:
print("Not allowed to use this feature")
Everything works, but when someone uses the disk+boot combo: bye bye aliases…
if i type the command:
alias edit .forbidden
Wouldnt it save and work even after a reboot? Because it doesn't work on my computer.