Package org.mctourney.autoreferee

Examples of org.mctourney.autoreferee.AutoRefPlayer.die()


        // one way or another, the player is now active
        apl.setActive();
      }

      else if (match.getCurrentState().isBeforeMatch())
      { if (onGround) apl.die(null, false); return; }
    }

    // if they have left their region, mark their exit location
    if (!team.canEnter(event.getTo(), 0.3) && !player.isSleeping())
    {
View Full Code Here


      // if there is no exit position, set the exit position
      else if (exit == null) apl.setExitLocation(player.getLocation());

      // if there is an exit position and they aren't falling, kill them
      else if (exit != null && fallspeed < FREEFALL_THRESHOLD && onGround)
        apl.die(AutoRefPlayer.VOID_DEATH, true);
    }

    // player inside region
    else
    {
View Full Code Here

      // if there is an exit location
      if (exit != null)
      {
        // if the player traveled too far through the void, kill them
        if (player.getLocation().distance(exit) > SAFE_TRAVEL_DISTANCE)
          apl.die(AutoRefPlayer.VOID_DEATH, true);

        // reset exit location since player in region
        apl.setExitLocation(null);
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.