Originally Posted by
x coder chase x
Code:
public void attackPlayer(int i) {
if (c.hasSpawn == 1) {
c.sendMessage("You are not allowed to pk due to being a spawn account");
return
}
if (c.hasSpawn == 2) {
c.sendMessage("You are not allowed to pk due to being a spwan account");
return;
}
if (c.playerRights == 2) {
c.sendMessage("You are not allowed to pk due to being an Administrator");
return;
[code]
thats what i have it as how can i edit it to make it where they can fun pk and duel without being able to stake?
Code:
public boolean stakeItem(final int itemID, final int fromSlot, final int amount) {
if (c.hasSpawn == 1 || c.hasSpawn == 2 || c.playerRights == 2) {
c.sendMessage("You are not allowed to pk due to being a spawn account");
return;
}