Examples of checkWinConditions()


Examples of org.mctourney.autoreferee.AutoRefMatch.checkWinConditions()

  {
    Player pl = event.getPlayer();
    Entity entity = event.getRightClicked();

    AutoRefMatch match = plugin.getMatch(pl.getWorld());
    if (match != null) match.checkWinConditions();

    if (entity.getType() == EntityType.PLAYER && match != null
      && match.isSpectator(pl) && match.isPlayer((Player) entity))
    {
      AutoRefPlayer a = match.getPlayer((Player) entity);
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.checkWinConditions()

  // ----------------- START WINCONDITION -----------------------

  private void _checkWinConditions(BlockEvent event)
  {
    AutoRefMatch match = plugin.getMatch(event.getBlock().getWorld());
    if (match != null) match.checkWinConditions();
  }

  private void _checkWinConditions(EntityEvent event)
  {
    AutoRefMatch match = plugin.getMatch(event.getEntity().getWorld());
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.checkWinConditions()

  }

  private void _checkWinConditions(EntityEvent event)
  {
    AutoRefMatch match = plugin.getMatch(event.getEntity().getWorld());
    if (match != null) match.checkWinConditions();
  }

  @EventHandler(priority=EventPriority.MONITOR, ignoreCancelled=true)
  public void checkWinConditions(BlockBreakEvent event)
  { _checkWinConditions(event); }
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.checkWinConditions()

  @EventHandler(priority=EventPriority.MONITOR, ignoreCancelled=true)
  public void blockBreak(BlockBreakEvent event)
  {
    AutoRefMatch match = plugin.getMatch(event.getBlock().getWorld());
    if (match != null) match.checkWinConditions();
  }

  @EventHandler(priority=EventPriority.MONITOR, ignoreCancelled=true)
  public void blockInteract(PlayerInteractEvent event)
  {
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.checkWinConditions()

  public void blockInteract(PlayerInteractEvent event)
  {
    if (event.hasBlock())
    {
      AutoRefMatch match = plugin.getMatch(event.getClickedBlock().getWorld());
      if (match != null) match.checkWinConditions();
    }
  }

  /* TRACKING WOOL CARRYING */

 
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.