Examples of HumanEntity


Examples of org.bukkit.entity.HumanEntity

    Afk.resetPlayerIdleTime(e.getPlayer().getName());
  }
 
  @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
  public void onPlayerInventoryOpen(InventoryOpenEvent e){
    HumanEntity he = e.getPlayer();
    if (he instanceof Player){
      Afk.resetPlayerIdleTime(((Player) he).getName());
    }
  }
View Full Code Here

Examples of org.bukkit.entity.HumanEntity

    }
  }
 
  @EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
  public void onPlayerInventoryClose(InventoryCloseEvent e){
    HumanEntity he = e.getPlayer();
    if (he instanceof Player){
      Afk.resetPlayerIdleTime(((Player) he).getName());
    }
  }
View Full Code Here

Examples of org.bukkit.entity.HumanEntity

    @EventHandler(
            ignoreCancelled = true, priority = EventPriority.LOWEST)
    public void onInventoryClick(final InventoryClickEvent event) {
        if (event.getWhoClicked() instanceof Player) {
          final long now = System.currentTimeMillis();
          final HumanEntity entity = event.getWhoClicked();
          if (!(entity instanceof Player)){
            return;
          }
            final Player player = (Player) entity;
            final int slot = event.getSlot();
View Full Code Here

Examples of org.bukkit.entity.HumanEntity

        if (furnaceBlock == null || furnaceBlock.hasMetadata(mcMMO.furnaceMetadataKey)) {
            return;
        }

        HumanEntity player = event.getPlayer();

        if (!UserManager.hasPlayerDataKey(player)) {
            return;
        }
View Full Code Here

Examples of org.bukkit.entity.HumanEntity

        if (furnaceBlock == null || furnaceBlock.hasMetadata(mcMMO.furnaceMetadataKey)) {
            return;
        }

        HumanEntity player = event.getPlayer();

        if (!UserManager.hasPlayerDataKey(player)) {
            return;
        }
View Full Code Here

Examples of org.bukkit.entity.HumanEntity

        if (!(holder instanceof BrewingStand)) {
            return;
        }

        HumanEntity whoClicked = event.getWhoClicked();

        if (!UserManager.hasPlayerDataKey(event.getWhoClicked()) || !Permissions.secondaryAbilityEnabled(whoClicked, SecondaryAbility.CONCOCTIONS)) {
            return;
        }
View Full Code Here

Examples of org.bukkit.entity.HumanEntity

        if (!(holder instanceof BrewingStand)) {
            return;
        }

        HumanEntity whoClicked = event.getWhoClicked();

        if (!UserManager.hasPlayerDataKey(event.getWhoClicked()) || !Permissions.secondaryAbilityEnabled(whoClicked, SecondaryAbility.CONCOCTIONS)) {
            return;
        }
View Full Code Here

Examples of org.bukkit.entity.HumanEntity

        SkillUtils.removeAbilityBuff(event.getCurrentItem());
    }

    @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
    public void onCraftItem(CraftItemEvent event) {
        final HumanEntity whoClicked = event.getWhoClicked();

        if (!whoClicked.hasMetadata(mcMMO.playerDataKey)) {
            return;
        }

        ItemStack result = event.getRecipe().getResult();
View Full Code Here

Examples of org.bukkit.entity.HumanEntity

  }

  @EventHandler(priority = EventPriority.MONITOR)
  public void saveOnOpen(InventoryOpenEvent event)
  {
    HumanEntity he = event.getPlayer();
    if (!(he instanceof Player)) return;
    Player pl = (Player) he;

    AutoRefMatch match = plugin.getMatch(pl.getWorld());
    AutoRefPlayer apl = match == null ? null : match.getPlayer(pl);
View Full Code Here

Examples of org.bukkit.entity.HumanEntity


  @EventHandler(priority = EventPriority.MONITOR)
  public void onClose(InventoryCloseEvent event)
  {
    HumanEntity he = event.getPlayer();
    if (!(he instanceof Player)) return;
    Player pl = (Player) he;

    AutoRefMatch match = plugin.getMatch(pl.getWorld());
    AutoRefPlayer apl = match == null ? null : match.getPlayer(pl);
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.