public final void doKillInPeace(final Player killer) // Check if the L2Player killed haven't Karma
{
if (_karma <= 0 && (_event == null || _event.checkPvP(killer, this))) {
if (Config.SERVICES_PK_PVP_KILL_ENABLE) {
if (Config.SERVICES_PK_PVP_TIE_IF_SAME_IP) {
if (this.getIP() == null ? killer.getIP() != null : !this.getIP().equals(killer.getIP())) {
ItemFunctions.addItem(killer, Config.SERVICES_PK_KILL_REWARD_ITEM, Config.SERVICES_PK_KILL_REWARD_COUNT, true);
}
}
if (Config.SERVICES_PK_PVP_TIE_IF_SAME_HWID) {
if (this.getHwid() == null ? killer.getHwid() != null : !this.getHwid().equals(killer.getHwid())) {
ItemFunctions.addItem(killer, Config.SERVICES_PK_KILL_REWARD_ITEM, Config.SERVICES_PK_KILL_REWARD_COUNT, true);
}
} else {
ItemFunctions.addItem(killer, Config.SERVICES_PK_KILL_REWARD_ITEM, Config.SERVICES_PK_KILL_REWARD_COUNT, true);
}
}
doPurePk(killer);
} else {
if (Config.SERVICES_PK_PVP_KILL_ENABLE) {
if (Config.SERVICES_PK_PVP_TIE_IF_SAME_IP) {
if (this.getIP() == null ? killer.getIP() != null : !this.getIP().equals(killer.getIP())) {
ItemFunctions.addItem(killer, Config.SERVICES_PVP_KILL_REWARD_ITEM, Config.SERVICES_PVP_KILL_REWARD_COUNT, true);
}
}
if (Config.SERVICES_PK_PVP_TIE_IF_SAME_HWID) {
if (this.getHwid() == null ? killer.getHwid() != null : !this.getHwid().equals(killer.getHwid())) {
ItemFunctions.addItem(killer, Config.SERVICES_PVP_KILL_REWARD_ITEM, Config.SERVICES_PVP_KILL_REWARD_COUNT, true);
}
} else {
ItemFunctions.addItem(killer, Config.SERVICES_PVP_KILL_REWARD_ITEM, Config.SERVICES_PVP_KILL_REWARD_COUNT, true);
}
}
killer.setPvpKills(killer.getPvpKills() + 1);
}
}