PlayerConditions v2.0.1

Details

  • Filename
    PlayerConditions.jar
  • Uploaded by
  • Uploaded
    Sep 3, 2015
  • Size
    90.46 KB
  • Downloads
    6,093
  • MD5
    d2f1d5e0781a40af035390df2ca6e28f

Supported Bukkit Versions

  • 1.8.3

Changelog

Version 2.0.1

  • Potentially fixed NullPointerException related to Frostbite - Reported by T_X_T - Closes ticket 4
  • Added a /conditions reload command due to my inability to realize that I removed the /pcconfig reload command
  • Fixed the inability to receive Frostbite in a randomization
  • Cleaned and condensed some code related to Frostbite

Version 2.0.0

  • Completely rewrote PlayerConditions!!!
  • Added a Startup class to handle startup methods (and removed startup package to save memory)
  • Removed the /pcconfig command
  • Removed the UseBandageNoHeal message config option (unused)
  • Removed Console message if metrics are disabled
  • Added a changelog.md file to log all changelogs ever logged in the history of PlayerConditions
  • Added an e.printStackTrace() method if metrics could not enable
  • Modified the imports and methods to expand the Startup class rather than the deleted classes
  • Fixed multiple declaration of the plugin to save memory
  • Changed checking direct EntityType, to instanceof
  • Declared ParticleData in the beginning of most classes
  • Blood effects on all mobs damaging the player rather than just specific mobs
  • Completely rewrote the entire recipe handling class
  • Added simplifications and declarations in the code to read it better
  • Added internal methods to simplify and speed up code processes
    • itemEquals(player, itemType, itemName) method in replacement to check item MetaData
    • removeCurrentItem(player) method to remove items from players inventories (cleans code)
    • bandageHandler(player, healthIncrease, isBleeding) method to handle the bandage click event
    • createItem(Material itemMaterial, String itemName, ArrayList<String> itemLore) method to create modified cure items
    • setHungerSlowness() method to simplify the addition of slowness when hungry
  • Added internal message implementations to clean the message sending process
  • Fixed regular eyes of ender not being able to be thrown
  • Removed my specialized join message (#SadFace)
  • Added a pcColour parameter in the "send" method to allow for the changing colours of the "PlayerConditions>" tag before messages
  • Removed multiple declarations of Random's and created a static reference in the beginning of the class
  • Compiled all startup methods into one class to save memory
  • Renamed all generic "enable" and "load" methods to "registerEvents", "registerCommands", and "loadItems"
  • Changed the way all conditions are handled (Handled through metadata rather than arraylists)
  • Started the process of creating a basic API (may be ready for next version)
  • Added a Condition Enumeration class to list all possible conditions
  • Added a PlayerStatus class
    • isBleeding(), isInfected(), isVaccinated, isFoodPoisoned(), isFrostbitten(), isMystified(), isHungry(), isArachnophobic(), and hasMalaria() boolean methods to determine whether a player has a specific condition
    • setCondition() method to add a condition to a player
    • removeCondition() method to remove a condition from a player
  • Removed all ArrayList initiations in the main class
  • Fixed some grammar mistakes in the conditions command (Oops. Still tons of work to do on this command)

PLEASE NOTE:

THERE IS NO VERSION INDICATION FOR BUKKIT 1.8.7. PLAYER CONDITIONS VERSION 1.4.3+ WILL ALWAYS BE COMPILED FOR CRAFTBUKKIT 1.8.0 - 1.8.7