Plugin Request Death Message Kill Counter

Discussion in 'Plugin Help/Development/Requests' started by MoejoeAw44, May 1, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    MoejoeAw44

  2. Offline

    robertforyou

    Hey, i could make this (it will have like two configs, one config.yml in PluginName folder and one in PluginName/data/data.yml (where the number of kills stores). Is it ok if it stores in yml?

    Edit: the plugin is done:
    https://dl.dropboxusercontent.com/s/e00t9d0bqv06ak6/DeathCount.jar?dl=0

    After you load it you will have in config to use normal account names or display names on the death message
    It records the kills to the player name (if you have an online server, just quote me, i will make it to UUID)
    You can customise the message in config.yml (after you start the server with plugin in plugins folder)
     
    Last edited: May 21, 2015
  3. Offline

    MoejoeAw44

    @robertforyou UUID is definitely required, but it's not needed ASAP.

    AND, Thank you very much. It was about time someone said they'd do this. You just made my day :)

    @robertforyou I'm not sure if it matters, but this plugin is for 1.7.10 Spigot. When a player dies it fails to pass an event. Here's the error for you.

    http://pastebin.com/7eRCU6Ms

    EDIT by Timtower: merged posts
     
    Last edited by a moderator: May 21, 2015
  4. Offline

    timtower Administrator Administrator Moderator

  5. Offline

    MoejoeAw44

    @timtower It was 2 lines so I suppose it would've been wasted time; and does my post really have to be moved to an alternative section? This is still a plugin request, I was clarifying with the fellow what my server version was. This plugin will still use the BukkitAPI and be compiled using Bukkit, making it a Bukkit plugin.

    I just don't see why mentioning the word "spigot" automatically moves this to an alternative section. :/

    Those 2 lines of "console" were put into a pastebin as of now.
     
  6. Offline

    timtower Administrator Administrator Moderator

    @MoejoeAw44 Well, spigot is an alternative. Simple as that.
    And it is always more than 2 lines. Full server log please
     
  7. Offline

    MoejoeAw44

    @timtower as I agree. I just don't see how this works. My request had nothing to do with Spigot. My server and files it's running shouldn't play a role in this. Now if I said "Please make this plugin for spigot not bukkit!!!1!!!" then of course, move it to here

    BUT

    I was clarifying for his sake as every bukkit plugin should work with spigot (noting they are the same version).
    Anyways, yeah ;p
     
  8. Offline

    timtower Administrator Administrator Moderator

    @MoejoeAw44 That entire spigot stuff is a conversation for a different place and time.
    But could you post your full server log?
     
  9. Offline

    MoejoeAw44

  10. Offline

    timtower Administrator Administrator Moderator

    @MoejoeAw44 Please get the original log with FTP, Multicraft tends to skip loads and loads of lines when they are too fast
     
  11. Offline

    MoejoeAw44

    Last edited by a moderator: May 21, 2015
  12. Offline

    robertforyou

    Let me recompile the plugin, i was thinking you use 1.8 so i compiled it with craftbukkit 1.8.3, i will compile (and also make it uuid) via 1.7.10, just let me 10 mins
     
  13. Offline

    timtower Administrator Administrator Moderator

    @robertforyou It isn't the jar version. It is a nullpointer.
    Caused by: java.lang.NullPointerException
    at me.the_all_nighta.DeathCount.Main.onPlayerDeath(Main.java:66) ~[?:?]
     
  14. Offline

    robertforyou

    Hmm, that's on line 66 " deathmessage = getConfig().getString("deathmessage");" the default config contains deathmessage (and it should create default config onEnable, on my test server it work)

    Updated, compiled with 1.7.10 (also i fixed a little bug where if the killer has nothing in hand the plugin was giving error, now it works and says with "air"). + now works stores kills to player uuids instead of names
    Make sure the java can create folders (so it can create the config.yml and the data file.
    Also make sure you use Java 7 or 8 (it was compiled with SE 1.7)

    After you test it, please reply if there appear errors again.
     
    Last edited: May 22, 2015
  15. Offline

    MoejoeAw44

    @robertforyou if possible, compile using SE1.7 as my box and sponsored servers are not currently updated yet.
     
  16. Offline

    robertforyou

    It's compiled with SE1.7, does it still gives error for you? Also does the folder is created? Can you give me config.yml (upload on pastebin) from /plugins/DeathCount/config.yml
    What java version you use?
     
  17. Offline

    MoejoeAw44

    @robertforyou My test server runs Java 8, rest of my servers run Java 7. Folder and configuration are created and looks normal (same as the config.yml in the jar).

    No errors until someone dies (when the death message is meant to come up)
    Error: http://pastebin.com/LJTBnhbD
     
  18. Offline

    robertforyou

    Hmm, can you try to delete config.yml? Maybe death message is broken, because on line 66 (from where error comes) is the code that get the message from deathmessage section. Delete config.yml and then restart the server. I can't see why this doesn't work,. i tried on my test server (on my local pc) and it worked. I tried with my public server and it worked

    Also please upload current config.yml of the plugin to pastebin and post it here
     
  19. Offline

    MoejoeAw44

    @robertforyou I did what you said, changing the configuration. I guess the default config didn't load properly or something. It now works. c; thanks!

    P.S, is there a way for ME (as I don't want to push you to do more then I asked) to make it to say things instead of; for example "Diamond Sword" instead of "DIAMOND_SWORD" ?

    I've seen some servers do it, and I thought'd be cool to try myself although I can't code.
     
Thread Status:
Not open for further replies.

Share This Page