Ok, well this tutorial will show you how to make a simple kill counter.
Firstly we will need to make an int, I will call it deathCount.
This integer is public, so anything we add to it will change for the whole server. We do not need to add saving as this is for how many kills happend on the server from when it restarted (Per day or what ever).
So, then we need to add the code to +1 for each death, so you will need to find your death process then add the following code to it
That is the code for 508, for 317 I think you just take off the 'p.'
Now we need to display the message to the server (in a command or when you click on an interface, I will show you how to do it when you click on an interface.
508:
317:
Firstly we will need to make an int, I will call it deathCount.
Code:
public static int deathCount = 0;
So, then we need to add the code to +1 for each death, so you will need to find your death process then add the following code to it
Code:
p.deathCount = +1;
Now we need to display the message to the server (in a command or when you click on an interface, I will show you how to do it when you click on an interface.
508:
Code:
case #;
p.frames.sendMessage(p, "So far today " +p.deathCount+ " players have died on SERVERNAME";
break;
317:
Code:
case #;
sendMessage("So far today " +deathCount+ " players have died on SERVERNAME";
break;