Examples of addPotionEffect()


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

        LogHelper.showInfo("invalidPlayer", sender, ChatColor.RED);
        return true;
      }
    }
   
    target.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, time, 0));
    LogHelper.showInfo("blindConfirm#####[" + Nicknames.getNick(target.getName()), sender, ChatColor.AQUA);
    if (sender != target){
      LogHelper.showInfo("blindNotify#####[" + Nicknames.getNick(sender.getName()), target, ChatColor.AQUA);
    }
   
View Full Code Here

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

      if (Handler_nanosuit.suitedPlayers.containsKey(pName)) {
        if (Handler_nanosuit.speed.contains(pName)) {
          player.removePotionEffect(PotionEffectType.SPEED);
          Handler_nanosuit.speed.remove(pName);
        } else {
          player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, (int) (20 * CommandsEX.getConf().getDouble("nanoSuitTime")), CommandsEX.getConf().getInt("nanoSuitSpeed")));
          Handler_nanosuit.speed.add(pName);
        }
        LogHelper.showInfo("nanoSuitSpeedMode", sender);
      }
    }
View Full Code Here

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

            player.removePotionEffect(effect);
            broadcastCommandMessage(sender, String.format("Took %s from %s", effect.getName(), args[0]));
        } else {
            final PotionEffect applyEffect = new PotionEffect(effect, duration, amplification);

            player.addPotionEffect(applyEffect, true);
            broadcastCommandMessage(sender, String.format("Given %s (ID %d) * %d to %s for %d seconds", effect.getName(), effect.getId(), amplification, args[0], duration_temp));
        }

        return true;
    }
View Full Code Here

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

    for (ItemStack item : getGear())
      pinv.addItem(cloneItem(apl, item));

    // assign potion effects
    for (PotionEffect effect : getPotionEffects())
      pl.addPotionEffect(effect, true);
  }

  public Set<PotionEffect> getPotionEffects()
  { return potionEffects; }
View Full Code Here

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

        match.broadcast(ChatColor.DARK_GRAY + "[" + apl.getDisplayName() +
          ChatColor.DARK_GRAY + "] Set time to 9pm");
        break;

      case NIGHT_VISION:
        player.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 8 * 60 * 20, 1));
        break;

      case CLEAR_POTION_EFFECTS:
        player.sendMessage(ChatColor.GRAY + "-- Potion effects cleared");
        PlayerUtil.removeStatusEffects(player);
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.