BookStats 1.8

Stats in a book with flat file and MySQL support!

  1. Fixed memory leak

    ZeeZee
    Fixed memory leak
  2. Optimizations and fixes

    ZeeZee
    • Optimized MySQL retrieving data
    • Optimized retrieving stats
    • Fixed error on player leave when mysql is set to true
    • Fixed creating user files even if flat file is not enabled
    • Attempting to update my old nasty code
  3. Fixed ConcurrentModificationException

    ZeeZee
    Fixed ConcurrentModificationException when Death Remove is set to true. Thanks to @zatbel123 for reporting it.
    zatbel123 likes this.
  4. PlaceholderAPI support and reload command

    ZeeZee
    - Added PlaceholderAPI support
    - Added reload command: /bookstats reload
  5. /p option

    ZeeZee
    Added /p option to separate into other pages.

    Example:

    Code (Text):
    Book:
    - "&b&l{Player}'s Stats!"
    - " "
    - "&1Balance: &4{Balance}"
    - " "
    - "&1Kills: &4{Kills}"
    - " "
    - "&1Deaths: &4{Deaths}"
    - " "
    - "&1Kill Streak: &4{Killstreak}"
    - " "
    - "&1Mob Kills: &4{Mobkills}"
    - " "
    - "&1Block Placed: &4{Blocksplaced}"
    - "/p"
    - "&1Block Broken: &4{Blocksbroken}"
    ferrinweb likes this.
  6. Options!

    ZeeZee
    Added a few options that were suggested:

    Code (Text):
    On Death:
        # Remove BookStat book from there dropped items on death.
        Death Remove: false
        # Give BookStats on death
        Give Book: false
        # Set which slot the book should be put in. If set to 0 it will just add it to the players inventory.
        Slot: 0
     
    # Only will give book if the players inventory does not contain a bookstat book.
    Book Limit: false
    Book Limit Message: '&4You can only have one book at a time!'
    I will be...
  7. MySQL and more options

    ZeeZee
    - Fixed making dupe MySQL entries
    - Fixed table alter attempting to alter when the column already exists
    - Added two options to prevent dropping and dragging items
    - Added name column to database.
    - Added support for older versions.

    Code (Text):
    On Join:
        # Give BookStats on join
        Give Book: false
        # Only give one book
        Give Limit: true
        # Set which slot the book should be put in. If set to 0 it will just add it to the players inventory.
        Slot: 0
        # Prevent dropping books....
  8. BookStats

    ZeeZee
    Fixed stats issue with placed and broken blocks.

    Added option to set table:


    Code (Text):
    MySQL:
        Use MySQL: false
        IP Address: localhost
        Port: 3306
        User: notroot
        Pass: notmypassword
        Database: BookStats
        Table: BookStats
  9. Give Limit

    ZeeZee
    Added option to only give one book to players rather then giving one every time they join:


    Code (Text):
    On Join:
        # Give BookStats on join
        Give Book: true
        # Only give one book
        Give Limit: true
        # Set which slot the book should be put in. If set to 0 it will just add it to the players inventory.
        Slot: 1