API 5.2.17 (Not a Plugin)

Details

  • Filename
    PlayerHeads-api-5.2.17-SNAPSHOT.jar
  • Uploaded by
  • Uploaded
    Aug 22, 2021
  • Size
    19.92 KB
  • Downloads
    79
  • MD5
    7320d0f7e4cefdce8224e3f490ccb7a2

Supported Bukkit Versions

  • 1.17
  • 1.16
  • 1.15
  • 1.14
  • 1.13
  • 1.12
  • 1.11
  • 1.10
  • 1.9
  • 1.8.1
  • 1.8

Changelog

PlayerHeads 5.2.17 API Additions:

  • API Addition: HeadRollEvent:recalculateSuccess() can now take one argument allowing you to control whether modifiers are reapplied (recalculating the effective droprate).
  • API Addition: HeadRollEvent:setCustomModifier() now has an additional argument allowing forcing recalculation immediately.
  • API Change: HeadRollEvent:setEffectiveDropRate was deprecated as a warning that other methods (such as recalculation) tend to overwrite the value.
  • API Addition: new droprate modifier types:
    • SET_CONSTANT - allows setting the droprate to a constant value and erasing the effects of previous modifiers
    • NO_EFFECT - allows adding a modifier without an effect on the droprate. This can be used as a form of recordkeeping or a toggled-off modifier by developers

This API should remain completely compatible with previous versions, deprecation warnings notwithstanding.

 

Documentation: https://crashdemons.github.io/PlayerHeads/

Instructions on using as a maven dependency can be found on the 4.10.0 API page.