Advanced Item Effects v1.4.0

Details

  • Filename
    AdvancedItemEffects.jar
  • Uploaded by
  • Uploaded
    May 8, 2014
  • Size
    18.98 KB
  • Downloads
    2,637
  • MD5
    9f3a7fdc5085540c846ebfef40366f17

Supported Bukkit Versions

  • CB 1.7.2-R0.3

Changelog

1.4.0

  • Added config
  • Fixed fixable bugs

1.3.2

  • Fixed known caveats and reported bugs
  • Cleaned up the code for command classes
  • Updated to 1.7.2-R0.3

1.3.0

  • Added equipment effects.
  • Optimized and cleaned up the code for lower power and higher speed.

1.2.1

  • Emergency glitch update. Fixes effects not being updated when player interacts with inventory from player's held item to inventory and inventory to player's current held item.

1.2

  • Fixed errors showing when player joins.
  • Removed maximum item potion effect multiplier from 2.
  • Added Item particle effects.

1.0

  • Potion effects to items that players hold

ISSUE:
When a player picks up an effect item while empty handed, effect will be applied even if the player does not hold that item in hand.


Explanation:
The PlayerPickupItemEvent's event.getItem() will return the picked up item.
However, this picked up item will not be updated until this event has been completed.
Therefore, player.getItemInHand() will return the previous item before picking up an item.
I have tried to do a workaround by checking a condition: player.getItemInHand().getAmound() == 0