Examples of giveExp()


Examples of org.bukkit.entity.Player.giveExp()

                                    expInt--;
                                } else {
                                    expInt++;
                                }
                            }
                            player.giveExp(expInt);
                        }
                    }
                    // give income
                    Jobs.getEconomy().pay(jPlayer, income*multiplier);
                    int oldLevel = prog.getLevel();
View Full Code Here

Examples of org.bukkit.entity.Player.giveExp()

                } else {
                    if (isTaking) {
                        sender.sendMessage(ChatColor.RED + "Taking experience can only be done by levels, cannot give players negative experience points");
                        return false;
                    } else {
                        player.giveExp(amount);
                        Command.broadcastCommandMessage(sender, "Given " + amount + " experience to " + player.getName());
                    }
                }
            } else {
                sender.sendMessage("Can't find player, was one provided?\n" + ChatColor.RED + "Usage: " + usageMessage);
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.giveExp()

      }
     
      //Location l = player.getLocation().add(player.getLocation().getDirection().normalize().multiply(2));
      //((ExperienceOrb)player.getWorld().spawn( l, ExperienceOrb.class)).setExperience( ep );
     
      player.giveExp(ep);
     
      ConflictPlugin.totalCrafted.put(player.getName(), 1+ ConflictPlugin.totalCrafted.get(player.getName()));
    }
  }
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.giveExp()

    if (null != event.getEntity().getKiller() && event.getEntity().getKiller() instanceof SpoutPlayer) {
      sp = (SpoutPlayer) event.getEntity().getKiller();
     
      if (event.getEntity().getType() == EntityType.ENDERMAN) {
        sp.giveExp(10);
      }
      if (event.getEntity().getType() == EntityType.ZOMBIE) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.SKELETON) {
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.giveExp()

     
      if (event.getEntity().getType() == EntityType.ENDERMAN) {
        sp.giveExp(10);
      }
      if (event.getEntity().getType() == EntityType.ZOMBIE) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.SKELETON) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.SPIDER) {
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.giveExp()

      }
      if (event.getEntity().getType() == EntityType.ZOMBIE) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.SKELETON) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.SPIDER) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.CAVE_SPIDER) {
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.giveExp()

      }
      if (event.getEntity().getType() == EntityType.SKELETON) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.SPIDER) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.CAVE_SPIDER) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.CREEPER) {
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.giveExp()

      }
      if (event.getEntity().getType() == EntityType.SPIDER) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.CAVE_SPIDER) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.CREEPER) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.PIG_ZOMBIE) {
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.giveExp()

      }
      if (event.getEntity().getType() == EntityType.CAVE_SPIDER) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.CREEPER) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.PIG_ZOMBIE) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.SLIME) {
View Full Code Here

Examples of org.getspout.spoutapi.player.SpoutPlayer.giveExp()

      }
      if (event.getEntity().getType() == EntityType.CREEPER) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.PIG_ZOMBIE) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.SLIME) {
        sp.giveExp(5);
      }
      if (event.getEntity().getType() == EntityType.WOLF) {
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.