Discussion in 'Plugin Help/Development/Requests' started by MoejoeAw44, May 1, 2015.
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:
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)
@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.
EDIT by Timtower: merged posts
Moved to Bukkit alternatives
@MoejoeAw44 Please post your server log using http://pastebin.com or similar
@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.
@MoejoeAw44 Well, spigot is an alternative. Simple as that.
And it is always more than 2 lines. Full server log please
@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
I was clarifying for his sake as every bukkit plugin should work with spigot (noting they are the same version).
Anyways, yeah ;p
@MoejoeAw44 That entire spigot stuff is a conversation for a different place and time.
But could you post your full server log?
EDIT: This is after a reload *yes, I know reloads aren't good*,
@MoejoeAw44 Please get the original log with FTP, Multicraft tends to skip loads and loads of lines when they are too fast
Sorry, that pastebin had no valid information.
http://pastebin.com/LJTBnhbD this one is better.
EDIT by Timtower: merged posts
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
@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) ~[?:?]
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.
@robertforyou if possible, compile using SE1.7 as my box and sponsored servers are not currently updated yet.
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?
@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)
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
@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.
Separate names with a comma.