Sikkunt Aaron Posted March 24, 2016 Posted March 24, 2016 call me a nub, but how do you say(in java), that if my player is in a specific square then do this shit...
Flamezzz Posted March 24, 2016 Posted March 24, 2016 Like this if(myPlayer().getPosition().equals(new Position(x,y,z))) { // do this shit } 1
Sikkunt Aaron Posted March 24, 2016 Author Posted March 24, 2016 Like this if(myPlayer().getPosition().equals(new Position(x,y,z))) { // do this shit } exactly. god bless you
Acerd Posted March 24, 2016 Posted March 24, 2016 this works too: if (areaOrPosition.contains(myPlayer())) { //hi }