im adding a command that if your within 3 squares of the person typing the command you get 100k.

here is what i have

Code:
if (playerCommand.equalsIgnoreCase("testing")) {
	for (Player p : Server.playerHandler.players) {
if (p.playerName != null && p != null && c.distanceToPoint(c.getX, c.getY) <= 3) {
	c.getItems().addItem(995, 100000);
		}
	}
}
but it doesnt work, can any 1 help?