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

    fireblast709

    There is no event for that
     
  2. Offline

    TheTinySpider

    Well i used just a scheduled task using a Iterator, something like this:
    PHP:
            List<PlayeronlinePlayers Arrays.asList(Bukkit.getServer().getOnlinePlayers());
            
    Iterator<Playeriterator onlinePlayers.iterator();
            while(
    iterator.hasNext()){
                
    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

    fireblast709

    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