Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!c.inFunPk()) {
- c.killerId = findKiller();
- Client o = (Client) PlayerHandler.players[c.killerId];
- if (o != null && c.killerId != c.playerId) {
- if (c.connectedFrom.equals(o.connectedFrom)) {
- o.sendMessage("You are killing someone from the same IP address as you.");
- return;
- }
- if (c.inPits) {
- return;
- } else
- if(!PlayerKilling.hostOnList(o, c.connectedFrom)) {
- PlayerKilling.addHostToList(o, c.connectedFrom);
- o.pPoints+=2;
- c.DC++;
- o.KC++;
- o.sendMessage("You have received a point, you now have "+o.pPoints+" pk points.");
- } else {
- o.sendMessage("You have recently defeated "+c.playerName+", you don't receive any pk points.");
- }
- }
- }
- public boolean inFunPk() {
- return absX > 3275 && absX < 3319 && absY > 3045 && absY < 3120;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement