You will need to uncomment the part that stops JS plugins from loading then rebuild Pluton. this will be done automatically soon.
Usage:
/sethome - sets the location of your home where you are standing
/tphome - returns to your home
Usage:
/sethome - sets the location of your home where you are standing
/tphome - returns to your home
JavaScript:
function On_Command(cmd){
if(cmd.cmd == "sethome") {
loc = cmd.User.Location;
DataStore.Add("Pluton_Home", cmd.User.GameID, loc);
cmd.User.Message("Your Home location is now Set!");
} else if(cmd.cmd == "tphome") {
loc = DataStore.Get("Pluton_Home", cmd.User.GameID);
if(loc != null) {
cmd.User.Teleport(loc);
cmd.User.Message("Welcome Home!");
} else
cmd.User.Message("No Home location has been set. use /sethome at desired location");
}
}
Last edited by a moderator: