Potion effect with sets of armor

Discussion in 'Plugin Development' started by blizzblang, Dec 19, 2012.

Thread Status:
Not open for further replies.
  1. Offline


    There is no event for that
  2. Offline


    Well i used just a scheduled task using a Iterator, something like this:
            List<PlayeronlinePlayers Arrays.asList(Bukkit.getServer().getOnlinePlayers());
    Iterator<Playeriterator onlinePlayers.iterator();
    Player onlinePlayer iterator.next();
    PlayerInventory inventory onlinePlayer.getInventory();
    int Weight 0;
    and after that just check the armor slots for armor, add that too the Int Weight and finnaly add a potion effect to the player depending on the Weight int
  3. Offline


    yes that is what I suggested in combination with the code snippet I posted as reply #4
Thread Status:
Not open for further replies.

Share This Page