just make like an int for player coords, like public int X; and public int Y; , make a command sethome and then under it put c.X = c.absX and be sure to put it in playersave
|
just make like an int for player coords, like public int X; and public int Y; , make a command sethome and then under it put c.X = c.absX and be sure to put it in playersave
if(playerCommand.startsWith("sethome")){
int x = substring blah
int y = substring blah
player.sethome(x,y);
}
public void sethome(x,y){
this.homeX = x;
this.homeY = y;
}
then in the saving classes u just save that and when u click on actionbutton of home tele it does
teleport(player.homeX,player.homeY);
mad?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |