Karma Ranking

Discussion in 'Archived: Plugin Requests' started by darkon12, Aug 24, 2014.

  1. Offline

    darkon12

    Plugin category: Ranking

    Suggested name: KarmaRanking

    What I want: Ranking plugin for my server, that depends on players KP - Karma Points.
    - New players are "Neutral" and starts with 0 KP,
    - Killing other players, animals and monsters control your KP,
    - Getting going above 10 KP makes you Good, getting below -10 KP makes you Bad,
    - To reconize if player is Good/Neutral/Bad, their nickname should be colored in proper color(Green/Grey/Red), or maybe there could be Colored prefix like [Bad]. Also should work in chat, players with "wanted" status should have Yellow Tag/Nick,
    - Wanted status (explaination below),
    - If player is Good, plugin should assain (hooking into Permissions) him to Good permission group, same goes for Neutral and Bad (need this to set different spawns, etc.),
    - top10 Good and top10 Bad ranking,
    - Notifications: when you get more than 10KP or you fall below -10KP, when someone gain "wanted" status,
    - posibility to change name of those groups (best if can just hook it to 3 different permission groups, need for future use).

    Explanation:
    Keep an eye on % symbol, it makes difference.

    Here is a masterpiece (by me) to explain, how you can get/lose KP by PVP:

    [​IMG]
    Example of PvP and Wanted Status:

    Good guy1 kills good guy2, good guy1 loses 20% of his KP (maybe it should be 33%).
    Then good guy1 ALSO gains "wanted" status (lasts 5 minutes being ONLINE, to prevent kiling and leaving server for few minutes). Killing him, while he has "wanted" status, gives you 20 KP, no matter if you are Bad or Good.

    Same goes for bad guy3 killing bad guy4, but in other way. He GAINs 20% (maybe 33%) of his KP (guy3 has -100KP, after killing he has -80KP). Bad guy3 goes on "wanted" status, killing him takes 20 of your KP (-20KP).

    Dying doesn't make you loose or gain KP.

    Wanted status are not working for Neutral players.

    Killing Good as Good and Bad as Bad explained above.
    Killing Neutral makes you lose -5 KP everytime, but no Wanted Status.
    Killing Good as Bad gives you -20 KP.
    Killing Good as Neutral gives you -10KP.
    Killing Bad as Good gives you 20KP.
    Killing Bad as Neutral gives you 10KP.


    If you are Neutral (and ONLY Neutral), killing animals gives you -1KP, killing monsters gives you +1KP. It's just to let Neutrals choose their side.



    Ideas for commands:

    - /Kp - shows your Karma Points,
    - /karma set <playerName> <amount> - to set manually KP,
    - /karma top10 - shows top10 Good players (Most KP) and top10 Bad players (Least KP),
    - /karma <enable/disable> <worldName> - to disable Karma gain and loss for specified worlds (Events, Minigames),
    Dunno, any ideas?

    Ideas for permissions:
    karma.commands - allows to use commands above,
    karma.disable - disables gain and loss of KP for player (he still has his KP).

    When I'd like it by: End of this month would be great, but take your time, i can wait, maybe you have some more ideas.

    Also, English is not my mother language, I can explain something using other words if needed.
     
  2. Offline

    darkon12

  3. Offline

    Kato233

    <removed>

    Do you have a MySQL database set up?


    [edit by JaguarJo: removed monetary discussion. Everything on the Bukkit forums is provided free of charge. Offering money or requesting payment for services will get posts deleted.]
     
  4. Offline

    timtower Administrator Administrator Moderator

    Kato233 You are not allowed to ask for money either
     
  5. Offline

    Kato233

  6. Offline

    darkon12

    Nah, no MySql database.

    Bumb

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  7. Offline

    darkon12

  8. Offline

    littleprof123

    I will make an attempt at it :) I will give you an update every so often... (For other plugin devs: I'm new to coding plugins so please don't hesitate to take up the job as I may be unable to do it)
    EDIT: Would you like a display for KP? Also, when you take 20% of something, should it round to an integer?
    EDIT 2: I ran it and got an error for saving/loading the hashmap I made... Don't know how to fix it or where to post my problem :(
     
  9. Offline

    darkon12

  10. Offline

    timtower Administrator Administrator Moderator

  11. timtower Usually I would now say don't take to pm but its just errors and your you so I wont' ;)
     
  12. Offline

    timtower Administrator Administrator Moderator

    bwfcwalshy I won't be spreading the plugin there so :p
     
  13. Offline

    littleprof123

    I may have just fixed it, so I may not need to. Just gotta run it real quick... :)
    I did everything except:
    Wanted status
    Neutrals and mob killing
    Commands

    Didn't have time last night, will get to it today... :)

    timtower Still problems with saving/loading the karma points hashmap I made, how do I PM?
    EDIT: Also, the /kp command does not work, there is an internal exception :/
    PS: I'm new to bukkit forums and hashmaps, so.... :/

    UPDATE: I have fixed all of my problems :)
    Neutral killing of animals/monsters works
    /kp works
    /karmaset [player] [integer] works
    Saving/loading hashmaps works
    EDIT: I get an error when I start the server:
    Show Spoiler

    Code:
    [18:22:07] [Server thread/INFO]: Starting minecraft server version 1.7.9
    [18:22:07] [Server thread/INFO]: Loading properties
    [18:22:07] [Server thread/INFO]: Default game type: SURVIVAL
    [18:22:07] [Server thread/INFO]: Generating keypair
    [18:22:08] [Server thread/INFO]: Starting Minecraft server on *:25565
    [18:22:09] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.2)
    [18:22:09] [Server thread/INFO]: [KarmaRanking] Loading KarmaRanking v0.1
    [18:22:09] [Server thread/INFO]: [WorldEdit] Loading WorldEdit v5.6.3
    [18:22:09] [Server thread/INFO]: [HelloPlayer] Loading HelloPlayer v0.1
    [18:22:09] [Server thread/INFO]: Preparing level "world"
    [18:22:09] [Server thread/INFO]: Preparing start region for level 0 (Seed: 999795809353680153)
    [18:22:10] [Thread-7/INFO]: ----- Bukkit Auto Updater -----
    [18:22:10] [Thread-7/INFO]: It appears that you're running a Beta Build, when you've specified in bukkit.yml that you prefer to run Recommended Builds.
    [18:22:10] [Thread-7/INFO]: If you would like to be kept informed about new Beta Build releases, it is recommended that you change 'preferred-channel' in your bukkit.yml to 'beta'.
    [18:22:10] [Thread-7/INFO]: With that set, you will be told whenever a new version is available for download, so that you can always keep up to date and secure with the latest fixes.
    [18:22:10] [Thread-7/INFO]: If you would like to disable this warning, simply set 'suggest-channels' to false in bukkit.yml.
    [18:22:10] [Thread-7/INFO]: ----- ------------------- -----
    [18:22:10] [Server thread/INFO]: Preparing spawn area: 20%
    [18:22:11] [Server thread/INFO]: Preparing start region for level 1 (Seed: 4085260519639396712)
    [18:22:12] [Server thread/INFO]: Preparing spawn area: 54%
    [18:22:12] [Server thread/INFO]: Preparing start region for level 2 (Seed: 4085260519639396712)
    [18:22:13] [Server thread/INFO]: [KarmaRanking] Enabling KarmaRanking v0.1
    [18:22:13] [Server thread/INFO]: [WorldEdit] Enabling WorldEdit v5.6.3
    [18:22:13] [Server thread/INFO]: WEPIF: Using the Bukkit Permissions API.
    [18:22:13] [Server thread/INFO]: [HelloPlayer] Enabling HelloPlayer v0.1
    [18:22:13] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [18:22:14] [Server thread/INFO]: Done (4.498s)! For help, type "help" or "?"
    [18:22:22] [Server thread/INFO]: DEATHEVENT[m
    [18:22:22] [Server thread/ERROR]: Could not pass event EntityDeathEvent to KarmaRanking v0.1
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:353) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.die(EntityLiving.java:799) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntitySkeleton.die(EntitySkeleton.java:123) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.damageEntity(EntityLiving.java:734) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityMonster.damageEntity(EntityMonster.java:48) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.F(EntityLiving.java:1018) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.Entity.B(Entity.java:335) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.B(EntityLiving.java:154) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityInsentient.B(EntityInsentient.java:111) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.Entity.h(Entity.java:242) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.h(EntityLiving.java:1271) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityInsentient.h(EntityInsentient.java:150) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityMonster.h(EntityMonster.java:25) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.entityJoinedWorld(World.java:1421) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.playerJoinedWorld(World.java:1402) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1290) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:481) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:649) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    Caused by: java.lang.NullPointerException
        at com.pokeono.littleprof.karmaranking.KarmaRanking.EntityDeathEventListener(KarmaRanking.java:124) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_40]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_40]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_40]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_40]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        ... 25 more
    [18:22:35] [Server thread/INFO]: DEATHEVENT[m
    [18:22:35] [Server thread/ERROR]: Could not pass event EntityDeathEvent to KarmaRanking v0.1
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:353) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.die(EntityLiving.java:799) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.damageEntity(EntityLiving.java:734) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityWaterAnimal.B(SourceFile:58) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.Entity.h(Entity.java:242) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.h(EntityLiving.java:1271) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityInsentient.h(EntityInsentient.java:150) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.entityJoinedWorld(World.java:1421) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.playerJoinedWorld(World.java:1402) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1290) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:481) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:649) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    Caused by: java.lang.NullPointerException
        at com.pokeono.littleprof.karmaranking.KarmaRanking.EntityDeathEventListener(KarmaRanking.java:124) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_40]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_40]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_40]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_40]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        ... 19 more
    [18:22:47] [Server thread/INFO]: DEATHEVENT[m
    [18:22:47] [Server thread/ERROR]: Could not pass event EntityDeathEvent to KarmaRanking v0.1
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:353) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.die(EntityLiving.java:799) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.damageEntity(EntityLiving.java:734) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityBat.damageEntity(SourceFile:199) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.Entity.burn(Entity.java:809) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.Entity.move(Entity.java:711) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.e(EntityLiving.java:1216) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.e(EntityLiving.java:1476) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityInsentient.e(EntityInsentient.java:289) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.h(EntityLiving.java:1309) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityInsentient.h(EntityInsentient.java:150) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityBat.h(SourceFile:109) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.entityJoinedWorld(World.java:1421) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.playerJoinedWorld(World.java:1402) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1290) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:481) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:649) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    Caused by: java.lang.NullPointerException
        at com.pokeono.littleprof.karmaranking.KarmaRanking.EntityDeathEventListener(KarmaRanking.java:124) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_40]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_40]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_40]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_40]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        ... 24 more
    [18:23:48] [Server thread/INFO]: DEATHEVENT[m
    [18:23:48] [Server thread/ERROR]: Could not pass event EntityDeathEvent to KarmaRanking v0.1
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:353) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.die(EntityLiving.java:799) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.damageEntity(EntityLiving.java:734) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityBat.damageEntity(SourceFile:199) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.Entity.burn(Entity.java:809) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.Entity.move(Entity.java:711) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.e(EntityLiving.java:1216) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.e(EntityLiving.java:1476) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityInsentient.e(EntityInsentient.java:289) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityLiving.h(EntityLiving.java:1309) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityInsentient.h(EntityInsentient.java:150) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.EntityBat.h(SourceFile:109) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.entityJoinedWorld(World.java:1421) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.playerJoinedWorld(World.java:1402) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.World.tickEntities(World.java:1290) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.WorldServer.tickEntities(WorldServer.java:481) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:649) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    Caused by: java.lang.NullPointerException
        at com.pokeono.littleprof.karmaranking.KarmaRanking.EntityDeathEventListener(KarmaRanking.java:124) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_40]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_40]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_40]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_40]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) ~[craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        ... 24 more
    [18:24:10] [Server thread/INFO]: CONSOLE: Stopping the server..[m
    [18:24:10] [Server thread/INFO]: Stopping server
    [18:24:10] [Server thread/INFO]: [HelloPlayer] Disabling HelloPlayer v0.1
    [18:24:10] [Server thread/INFO]: [WorldEdit] Disabling WorldEdit v5.6.3
    [18:24:10] [Server thread/INFO]: [KarmaRanking] Disabling KarmaRanking v0.1
    [18:24:10] [Server thread/INFO]: Saving players
    [18:24:10] [Server thread/INFO]: Saving worlds
    [18:24:10] [Server thread/INFO]: Saving chunks for level 'world'/Overworld
    [18:24:10] [Server thread/INFO]: Saving chunks for level 'world_nether'/Nether
    [18:24:10] [Server thread/INFO]: Saving chunks for level 'world_the_end'/The End
    [18:24:10] [Thread-4/INFO]: Stopping server
    [18:24:10] [Thread-4/INFO]: Saving players
    

    PS: HelloPlayer is my other plugin I made.
    EDIT: FIXED The error happened everytime a mob died, but not from a player. Added check for killer being a player.

    Still missing:
    Wanted status karma change
    /karma top10
    /karma [enable/disable] [world]

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

    darkon12

    Wow, you are great m8! I hope you will finish it as soon as possible!
     
  15. Offline

    littleprof123

    I'm almost done, just got friends on to help me test some things... xD Still have yet to have the wanted status do anything... But its there xD
     
  16. Offline

    darkon12

    It's great! I hope everything is gonna work fine.
     
  17. Offline

    littleprof123

    :confused: I added something that removed an error, but ended up making half the code not run xD Had to get off yesterday, will fix today(hopefully o.o)
    EDIT: Don't have any friends on to test .-. Don't know what to do as that was the code not running...
     
  18. Offline

    darkon12

    Well, you can PM me hamachi adress and we will test it togheter.
     
  19. Offline

    littleprof123

    All done except the /karma top10 and /karma <enable/disable> <world>
    EDIT: Oh and permissions o.o
     
  20. Offline

    littleprof123

    Sorry school started I just now have time:
    <Edit by Moderator: Redacted mediafire url>



    Tell me if anything is wrong
     
    Last edited by a moderator: Nov 1, 2016
  21. Offline

    darkon12

    Killing Bad doesnt give KP, also killing Good as Bad gives -5kp when it should give -20. Thats all that i tested so far.
     

Share This Page