it work but now i have this :
final String ip = p.getClient().getConnection().getInetAddress().getHostAddress();
if (ip.contains(ip))
continue;
p.sendMessage ("AutoReward: You got" + Config.AUTO_REWARD_COUNT + "" + Config.NAME_ITEM_REWARD + "for being online");
p.getInventory (). addItem ("", Config.AUTO_REWARD_ID, Config.AUTO_REWARD_COUNT, p, null);
ips.add(ip);
}
}
}