Jump to content




Alias questions


  • You cannot reply to this topic
2 replies to this topic

#1 RoD

  • Members
  • 313 posts

Posted 17 May 2014 - 05:19 PM

Hey everyone, i am trying to disable editing among other things and i did a startup file:
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.

#2 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 17 May 2014 - 05:23 PM

AFAIK aliases don't save across reboots.

You could just put bedrock all around the computer :P no one could bypass it then.

Edited by ZudoHackz, 17 May 2014 - 05:24 PM.


#3 RoD

  • Members
  • 313 posts

Posted 17 May 2014 - 05:36 PM

View PostZudoHackz, on 17 May 2014 - 05:23 PM, said:

AFAIK aliases don't save across reboots.

You could just put bedrock all around the computer :P no one could bypass it then.
I am not really into that... This is quite strange. Why would i want to set an alias for only one session? :/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users