i need help to make it so you cant attack a person on the same ip twice after killing him before. (or make it so u dont get loot if u kill them on same ip as last kill)

heres the code to i have atm to make it so if there on the same ip they dont get loot:
public boolean receivesPVPDrop(Player p, Player opp) {
if (Server.socketListener.getAddress(p.socket.socket) .equals(Server.socketListener.getAddress(opp.socke t.socket))) {
return false;
}
return true;
}