Inactive [RPG/MISC] BetterLeveling v1.1 - Makes Player Levels Useful [1.4.5-R0.3]

Discussion in 'Inactive/Unsupported Plugins' started by monstuhs, Apr 15, 2012.

  1. Offline


    BetterLeveling - Make Minecraft player levels useful
    Version: v1.0
    Author: monstuhs

    Resurrected this plugin from the grave. I spent all my time tonight fixing maven dependencies issues so I only had time to compile and ever-so-gently smoke test this with 1.4.5. No clue where I was at with this when I left off so please let me know if you find any bugs.

    BetterLeveling allows you to factor in vanilla Minecraft level to various activities. This uses the vanilla level mechanics so it doesn't rely on it's own built-in leveling system such as mcMMO

    • Additional health regeneration per level
    • Chance to crit on attack based on your level
    • Chance to dodge when attacked based on your level
    • Chance to double-drop ore's when mined based on your level
    • Chance to instabreak certain blocks based on your level
    • Can configure the amount of XP lost and dropped on player death
    • Everything is configurable!
    Download BetterLeveling
    View the Source Code

      WorldName: world
        PercentageDamageFromDodge: 75
        PercentageDamageFromCrit: 200
        PercentageDamageFromHeadshot: 200
        MaximumChanceForCrit: 75.0
        MaximumChanceForDodge: 75.0
        PercentageOfXPDropped: 100
        PercentageOfXPRetained: 0
        PercentageChancePerLevelToDoubleDrop: 1.0
        PercentageChancePerLevelToInstaBreak: 1.0
        PercentageChancePerLevelToDodge: 2.0
        PercentageChancePerLevelToCrit: 2.0
          RegenIntervalInSeconds: 20
          HalfheartsPerLevel: 0.5
        ChanceToCrit: Chance To Crit
        ChanceToDodge: Chance To Dodge
        ChanceToDoubleDrop: Chance To Double-Drop
        ChanceToInstaBreak: Chance To Insta-Break
        ExtraRegenPerSecond: Extra Regen Per Second
        CriticalHit: Critical Hit!
        Dodge: Dodge!
        HeadShot: Headshot!

    Version 1.1
    * Made "ChanceToDoubleDrop" and "ChanceToInstaBreak" double precision (meaning you can do 0.42 or 3.14159) if you want.

    Version 1.0
    * Updated to 1.4.5 R0.3


    Show Spoiler

    Version 0.6 & 0.6.2
    * Insta-break no longer works on blocks connected to things like levers, buttons, doors, etc.
    * Insta-break only works when you are using the appropriate tool (spade for dirt/grass/sand/etc, pick for ore/stone/cobble/etc and axe for wood/logs/etc)
    * Configurable percentage of XP retained on death (default 0%)
    * Configurable percentage of player XP dropped on death (default 100%)
    * All player messages are configurable (which allows localization). You can set the messages in the configuration file (default messages are US English)
    * The "/stats" command now shows the maximum values for crit and dodge chance
    * Changed the "percentage per level" for crit and dodge to be double precision so you can use values like "0.42" or "4.20" or whatever your little heart desires
    * Critical Hit, Dodge, and Headshot messages sent to players can be turned off by specifying '' or "" in the corresponding localization node.

    Version 0.5
    * Updated to bukkit 1.2.5 R3.0
    * Fixed bug where setting chance to instabreak to 0 didn't always work (I'm going to add an on/off configuration setting in the next version)
    * Instabreak only works on Ore blocks now (I plan to make this configurable in the next version)
    * Fixed "ConcurrentModificationException" error
    * Fixed "NagAuthor" warning on disable
    * Fixed bug where "/stats" command would ignore server's maximum value for each stat
    * Download link now uses public dropbox

    Version 0.4
    * Added command: "stats" that shows your current stats

    Version 0.3
    * Added regeneration-per-level support (configurable)
    * (Regen per level * player level) is always rounded down

    Version 0.2
    * Fixed bug where skeletons were attempting to make headshots

    Version 0.1
    * Initial Version
  2. Offline


    yeah im going to have to turn off the plugin the instant block is annoying and that error is annoying
  3. Offline


    Is there a command to turn off ALL notices? For the whole server too? I wanted to make a video of my battles but the stats keep popping up =/ love the plugin btw!
  4. Offline


    monstuhs!! where rr uuu?!?
  5. Offline


    - Exp not retain when set other than 100
    - Exp not drop
    - Instant break does occur even set to 0 or negative value
    - Extra regen still work when hunger below 8 (or it meant to do that?)

    Future Features: Maybe you might interest :D
    - Attack damage higher
    - Extended max heart
    - Extended max hunger
    - Eat quicker
    - Run/Walk faster
    - Swim faster
  6. Offline


    Baby come back!
  7. Offline


    Any updates?
  8. Offline


    Back. I'd say "and better than ever" but I just updated the bukkit version and compiled and low-and-behold everything built without a hitch.
    kahlilnc likes this.
  9. Offline


    only error ive found so far, is that numbers smaller than 1.0 do not appear to work for PercentageChancePerLevelToDoubleDrop. When i use /stats at level 73 it says Chance to Double-Drop: 0.

    but then when set to a number larger than 0, lets say 1 for instance at level 73, it says Chance to Double-Drop: 73

    Great plugin, made a account just to let you know about this.
  10. Offline


    kahlilnc likes this.
  11. Offline


    Fixed. I made both PercentageChancePerLevelToDoubleDrop and ChanceToInstaBreak double precision so you can use values less than zero (something like 1.54 if you want).

    Thanks for that. Comments like that make writing plugins worth it.

    Thanks! Any idea why it doesn't show up in the Get Plugins list?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 25, 2016
    ThaRev likes this.
  12. Offline


    I'm not sure if the new forum posts show up any more. If they do, it will take while.
  13. Offline


    I have to Ask You Something
    Why i Couldnt Set (In the Config)
    DoubleDrop+Instabreak to 0.2 or 0.5
    Why only 1.0 Works??
    And the Opinion Drop ExP
    and Regain ExP dont work exactly if you set drop Exp to 100% it drops 17369 Levels
    and if you set regain 100% you regain nothing !!!?!!!!

    And make a New Opinion Where you Can Hit Someone And it deal more DmG
    And make a Opinion to Disable this Worse Messages in Chat this sucks every 5nd Hit

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 25, 2016
  14. Offline



    Thank you for this nice plugin. Players on my server enjoy it :)

    I changed configuration and I've found 2 bugs:
    • for mining it use the same value for double drop and instabreak chance
    • for new xp after death, it doesn't work well
    I've patched them and committed them on github, so monstuhs you can pick them : source code
    For users, the patched version is there : BetterLevelingKKR.jar

    Remarque : if you use Essentials plugin, there is essentials.keepxp which is give by default for admin group who protect them from loosing xp and can conflict (only on admin users).
  15. Offline


    Can you try with patched version ?
  16. Offline


    Can you add this to the bukkit server mods list. I like to keep updated with their subscriptions service.
  17. Offline


    I keep getting this error after I have installed it? Any solutions?
    10:02:39 AM [SEVERE] Exception in thread "pool-1-thread-76"
    10:02:39 AM [SEVERE] org.apache.commons.lang.UnhandledException: Plugin Better Leveling v1.1 generated an exception while executing task 1626
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$ Source)
    at Source)
    Caused by: java.util.ConcurrentModificationException
    at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
    at java.util.ArrayList$ Source)
    at org.bukkit.craftbukkit.v1_4_6.CraftWorld.getPlayers(
    ... 3 more
  18. Offline


    Is this thread dead? What about BukkitDev link?

  19. Offline



Share This Page