Sikkunt Aaron Posted March 24, 2016 Share 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... Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted March 24, 2016 Share Posted March 24, 2016 Like this if(myPlayer().getPosition().equals(new Position(x,y,z))) { // do this shit } 1 Quote Link to comment Share on other sites More sharing options...
Sikkunt Aaron Posted March 24, 2016 Author Share Posted March 24, 2016 Like this if(myPlayer().getPosition().equals(new Position(x,y,z))) { // do this shit } exactly. god bless you Quote Link to comment Share on other sites More sharing options...
Acerd Posted March 24, 2016 Share Posted March 24, 2016 this works too: if (areaOrPosition.contains(myPlayer())) { //hi } Quote Link to comment Share on other sites More sharing options...