stop teleporting from an area
Code:
public boolean in****() {
if((absX >= **** && absX <= **** && absY >= **** && absY <= ****))
{
return true;
}
return false;
}
in your teleport method add
Code:
if (c.in****()) {
c.sendMessage("You cannot teleport from ****!");
return;
}
the same can be done in you're openbank method which will stop banking and teleporting while in this area.
Code:
if (c.in****()) {
c.sendMessage("You cannot bank from ****!");
return;
}
or add somthing like this
public int ingame; < to player.java make it save also
add
Code:
if (c.ingame == 1) {
c.sendMessage("You cannot teleport while in this minigame!");
return;
}
and when u enter the mini game simple add this to your entry method > "c.ingame = 1;"