A guard region.

Discussion in 'Plugin Development' started by rene3233, Jan 25, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    rene3233

    A guard region.
    Hi I have a problem and that I want when I go to a dance every region I will be having a Naricht sent to my plugin does not work in hmod bukkit but here is my code:

    Code:
     public boolean isPlayerInArea (double pos1, pos2 double, double x1, double y1, double x2, double y2) {
      if (x1 < pos1 && pos1 < x2 && y1 < pos2 && pos2 < y2)
      {
                 return true;
      }
      else
      {
      return false;
      }
    
      }
     
    Is opened so
    Code:
     if (plugin.funktions.isPlayerInArea (player.getLocation (). getX (), player.getLocation (). getz (), 95.60742777487562, -297.64941803036794,104.69999998807907, -303.7535874267262 )){
    
    I hope you can help me.
    With very best regards
    Rene3233
     
Thread Status:
Not open for further replies.

Share This Page