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

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

     
  1. Offline

    monstuhs

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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

    Features:
    • 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

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

    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


    [IMG]


    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
    [IMG]

    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

    This post has been edited 30 times. It was last edited by monstuhs Dec 19, 2012.
  2.  
  3. Offline

    Beimeith

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh, two other things:

    Can you set a maximum chance to double-drop / insta-break?

    Also, can you add a way to change the values/reload the plugin from inside the game? (This may not be possible but I have to ask!)

    This post has been edited 1 time. It was last edited by Beimeith Jun 3, 2012.
  4. Offline

    needle44

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah ^^ Also an interesting idea is economy support for like exp loss. So if someone has x amount of money on them they lose that x amount of money instead of their exp (they gain the levels back when they spawn) But if they don't have that money then they lose a configurable amount of exp but they don't lose their money, just an idea :p
  5. Offline

    kahlilnc

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How about colorful messages preferably custom?
  6. Offline

    Beimeith

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Two more for you! I'm on a roll tonight, (I suspect the alcohol)!

    Is there a way to make it permission-based? Basically, if I want one group of people to have insta-break, but not double-drop, or one group to have nothing, and another to have everything?

    Related to the above, can you add multiworld support? From testing it appears that it works for every world I have, and I would like to disable it (partially or totally) in some of them which are supposed to be harder/more dangerous. I don't want people getting lots of extra critical hits there!
  7. Offline

    ftfc

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    another idea,
    be able to remove specific abilities.
    so for example be able to remove insta-break all together
    or double drop
    or any combination?
  8. Offline

    mike8420

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    i just received this error on my server

    14:49:29 [WARNING] Can't keep up! Did the system time change, or is the server o
    verloaded?
    15:23:42 [SEVERE] java.util.ConcurrentModificationException
    15:23:42 [SEVERE] at java.util.ArrayList$Itr.checkForComodification(Unknow
    n Source)
    15:23:42 [SEVERE] at java.util.ArrayList$Itr.next(Unknown Source)
    15:23:42 [SEVERE] at org.bukkit.craftbukkit.CraftWorld.getPlayers(CraftWor
    ld.java:628)
    15:23:42 [SEVERE] at me.monstuhs.betterleveling.Runnables.RegenerationTask
    .run(RegenerationTask.java:29)
    15:23:42 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(Craf
    tWorker.java:34)
    15:23:42 [SEVERE] at java.lang.Thread.run(Unknown Source)
  9. Offline

    monstuhs

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Permissions... like configuration, is one of the less fun areas to work on, which is why I was putting it off =P. I'll dig into it soon. Also, regarding the multi-world support, I'll try to get to that too
  10. Offline

    monstuhs

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll look into it
  11. Offline

    c0d0h

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi, this is the perfect plugin i have been searching for, so that i no longer have to rely on in-house external plugin systems.. so well done for such an awesome plugin :)

    on to business (so to speak).. when entering the /stats command is there any way to not display the max critical or dodge? eg. chance to crit: 0/80.0, i just want to display like 0.0%.

    EDIT
    also, i have tested the retain bit (test at 100) but still loose all of my levels and xp. any ideas?

    Thanks :)

    This post has been edited 1 time. It was last edited by c0d0h Jun 6, 2012.
  12. Offline

    Niko of death

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is this compatible with mcmmo?
  13. Offline

    c0d0h

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    this would be why mine wasnt working .. oops :oops:
  14. Offline

    a11111

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'd like to see an option to adjust the equation that determines how much XP is needed for each level. I tested this plugin on my PVP server and basically what happens is all the top players built huge mob grinders to level up and then completely dominated everyone.

    - Maybe make it so you can change it so it's 3x harder than usual to level up.
    - Or make it so you only get XP from killing other players?
  15. Offline

    Heros5k

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How to Install this Plugin?
  16. Offline

    monstuhs

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    1. Download betterleveling.jar
    2. Put betterleveling.jar into the "plugins" folder
    3. Restart server
  17. Offline

    varnado2013

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Make it to where you don't lose levels upon death!
  18. Offline

    Trykster

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    having an issue setting the % of xp dropped upon death below 100.. when i try to set the value to 50 or 75% it drops nothing.. if i switch it back to 100 it works fine..
  19. Offline

    marubal21

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is it possible to make PercentageChancePerLevelToDoubleDrop and PercentageChancePerLevelToInstaBreak work with double precision. cuase i currently use 0.4 on my server but it reads it as 0.
  20. Offline

    mike8420

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have instant break on 0 but everytime i break a stone block it instant breaks, my level is at 97 but shouldnt it not instant break
  21. Offline

    Vdrhtc

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah, yeah, permissions support will be just awesome! That's exactly what I need. Nearly infinite possibilities)
    And may be you can add accurate damage data in chat messages, for instance, percentage ratio between dealt damage and full hp of a target or exact value in half-hearts instead of (2x)? That's will be epic

    This post has been edited 1 time. It was last edited by Vdrhtc Jun 20, 2012.
  22. Offline

    damnnicholas

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey i made a little showcase about this :)


    Mind if you check it out?

    This post has been edited 1 time. It was last edited by damnnicholas Jul 1, 2012.
    kahlilnc likes this.
  23. Offline

    vanmc

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Really great plugin :D
  24. Offline

    pablo746

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is there a way i can turn off insta break.
  25. Offline

    deatlock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I really liked the plugin, it improves the game a lot.
    It is extra fun with the monster hunt plugin by the way.

    But i'm having a little issue.
    When i set values diffrent from 0 or 100 to PercentageOfXPDropped an PercentageOfXPRetained it comes out as 0.
    For example if i set both to 50 i'll keep nothing and drop nothing.
    If i set PercentageOfXPRetained to 100 it keeps all my levels.

    Am i doing something worg?
  26. Offline

    deatlock

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    and another thing
    instabreak still happening even with PercentageChance set to 0
  27. Offline

    jdev21

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm having the same problems as deatlock.
  28. Offline

    AlexCityOfFun

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have an error on my console. I dont know what is it...
    Code:
    16:28:37 [SEVERE] java.util.ConcurrentModificationException
    16:28:37 [SEVERE]    at java.util.ArrayList$Itr.checkForComodification(Unknown Source)
    16:28:37 [SEVERE]    at java.util.ArrayList$Itr.next(Unknown Source)
    16:28:37 [SEVERE]    at org.bukkit.craftbukkit.CraftWorld.getPlayers(CraftWorld.java:628)
    16:28:37 [SEVERE]    at me.monstuhs.betterleveling.Runnables.RegenerationTask.run(RegenerationTask.java:29)
    16:28:37 [SEVERE]    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    16:28:37 [SEVERE]    at java.lang.Thread.run(Unknown Source)
    Could you solve it?
  29. Offline

    mike8420

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    yeah im going to have to turn off the plugin the instant block is annoying and that error is annoying
  30. Offline

    Scrillas

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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!

    This post has been edited 2 times. It was last edited by Scrillas Aug 9, 2012.
  31. Offline

    templarjay

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    monstuhs!! where rr uuu?!?
  32. Offline

    y1985

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Bugs:
    - 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

    This post has been edited 2 times. It was last edited by y1985 Aug 26, 2012.

Share This Page