Examples of FixedMetadataValue


Examples of org.bukkit.metadata.FixedMetadataValue

            if (((Player) sender).hasMetadata(mcMMO.databaseCommandKey)) {
                sender.sendMessage(LocaleLoader.getString("Commands.Database.Processing"));
                return;
            } else {
                ((Player) sender).setMetadata(mcMMO.databaseCommandKey, new FixedMetadataValue(mcMMO.p, null));
            }

            mcMMOPlayer.actualizeDatabaseATS();
        }
View Full Code Here

Examples of org.bukkit.metadata.FixedMetadataValue

        if (bow != null && bow.containsEnchantment(Enchantment.ARROW_INFINITE)) {
            projectile.setMetadata(mcMMO.infiniteArrowKey, mcMMO.metadataValue);
        }

        projectile.setMetadata(mcMMO.bowForceKey, new FixedMetadataValue(plugin, Math.min(event.getForce() * AdvancedConfig.getInstance().getForceMultiplier(), 1.0)));
        projectile.setMetadata(mcMMO.arrowDistanceKey, new FixedMetadataValue(plugin, projectile.getLocation()));
    }
View Full Code Here

Examples of org.bukkit.metadata.FixedMetadataValue

        if (!(projectile instanceof Arrow) || projectile.hasMetadata(mcMMO.bowForceKey)) {
            return;
        }

        projectile.setMetadata(mcMMO.bowForceKey, new FixedMetadataValue(plugin, 1.0));
        projectile.setMetadata(mcMMO.arrowDistanceKey, new FixedMetadataValue(plugin, projectile.getLocation()));
    }
View Full Code Here

Examples of org.bukkit.metadata.FixedMetadataValue

     * Track a new user.
     *
     * @param mcMMOPlayer the player profile to start tracking
     */
    public static void track(McMMOPlayer mcMMOPlayer) {
        mcMMOPlayer.getPlayer().setMetadata(mcMMO.playerDataKey, new FixedMetadataValue(mcMMO.p, mcMMOPlayer));
    }
View Full Code Here

Examples of org.bukkit.metadata.FixedMetadataValue

     *
     * @param player The player to enable godmode for
     */
    public void enableGodMode(Player player) {
        if (!hasGodMode(player)) {
            player.setMetadata(METADATA_KEY, new FixedMetadataValue(CommandBook.inst(), true));
        }
    }
View Full Code Here

Examples of org.bukkit.metadata.FixedMetadataValue

    this.m_entity.world.players.remove(this.m_entity);
    Player player = this.getBukkitEntity();
    if(player != null)
    {
      player.teleport(inLocation);
      player.setMetadata("remoteentity", new FixedMetadataValue(this.m_manager.getPlugin(), this));
    }

    this.setHeadYaw(inLocation.getYaw());
    this.setYaw(inLocation.getYaw());
    ((RemotePlayerEntity)this.m_entity).updateSpawn();
View Full Code Here

Examples of org.bukkit.metadata.FixedMetadataValue

      worldServer.addEntity(this.m_entity, SpawnReason.CUSTOM);
      entry.restore();
      LivingEntity bukkitEntity = this.getBukkitEntity();
      if(bukkitEntity != null)
      {
        bukkitEntity.setMetadata("remoteentity", new FixedMetadataValue(this.m_manager.getPlugin(), this));
        if(this.getName() != null && this.getName().length() > 0)
        {
          bukkitEntity.setCustomName(this.getName());
          bukkitEntity.setCustomNameVisible(true);
        }
View Full Code Here

Examples of org.bukkit.metadata.FixedMetadataValue

        if (!canBeBroken) {
            return false;
        }

        for (Sign sign : brokenBlocks) {
            sign.setMetadata(METADATA_NAME, new FixedMetadataValue(ChestShop.getPlugin(), breaker));
        }

        return true;
    }
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.