Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Under
- public void attackPlayer(int i) {
- if (Server.playerHandler.players[i] != null) {
- if (Server.playerHandler.players[i].somethingtoidentifytheitemhere? && Server.playerHandler.players[c.playerIndex].duelStatus == 0) { // i block my memberStatus 3 from pvp here with .memberStatus = 3, delete the && part to do with dueling if you want the item disabled for dueling
- resetPlayerAttack();
- c.sendMessage("@red@This person is wearing an illegal item and cannot be attacked");
- return;
- }
- if ((//c.wearingitemcodetocheckthis if they are wearing the item) && (c.duelStatus == 0)) // remove &&(c.duelStatus == 0) if you dont want the item used in duels.
- {
- resetPlayerAttack();
- c.teleportToX = 3090;
- c.teleportToY = 3500;
- c.sendMessage("You are wearing a non-pvp item.");
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement