I tried
Code:
public void makeGlobalObjectwh(int x, int y, int typeID, int orientation, int tileObjectType, int height){ //Makes Global objects with height
height = heightLevel;
for (Player p : server.playerHandler.players){
if(p != null){
client person = (client)p;
if((person.playerName != null || person.playerName != "null")){
if(person.distanceToPoint(x, y) <= 60){
person.createNewTileObject(x, y, typeID, orientation, tileObjectType);
}
}
}
}
}
And that just makes it on the ground level.
and then I tried:
Code:
public void makeGlobalObjectwh(int x, int y, int typeID, int orientation, int tileObjectType, int height){ //Makes Global objects with height
outStream.writeByte(height);
for (Player p : server.playerHandler.players){
if(p != null){
client person = (client)p;
if((person.playerName != null || person.playerName != "null")){
if(person.distanceToPoint(x, y) <= 60){
person.createNewTileObject(x, y, typeID, orientation, tileObjectType);
}
}
}
}
}
But that one just d/cs me on log in.
Help?