title: Number of kills is always the same for every player. (Bukkit)
body: <p>As I was coding, I tested my plugin and this seemed to happen: 
  basically, when a player kills another player, his kill count goes up by one. However, when a player has for instance 5 kills, so will all the other players. Here is my code:</p>
  
  <pre><code>    public class KillDeathCounter extends JavaPlugin {
  
      public void onEnable() {
          new PlayerListener(this);
          getLogger().info("Players will not be able to kit spam.");
  
          this.getConfig().addDefault("playerkills", 0);
          this.getConfig().addDefault("playerdeaths", 0);
          this.getConfig().options().copyDefaults(true);
  
          saveConfig();
      }
  
      public void onDisable() {
          getLogger().info("Kill Death Counter has been disabled.");
          saveConfig();
      }
  
      public boolean onCommand(CommandSender sender, Command cmd, String label,
              String[] args) {
  
          if (cmd.getName().equalsIgnoreCase("digipvp")) {
              Player p = (Player) sender;
              p.sendMessage(ChatColor.AQUA
                      + "Our PVP plugin was developed by Pierre Lichtlé, the owner, also known as Master Digi."
                      + " If you would like to contact him for a plugin, send him an email at developer.petlamb@gmail.com."
                      + " Thanks for playing on our server!");
  
              return true;
  
          }
  
          return false;
      }
  }
  
  
      package me.katsunicalis.plugin;
  
  import org.bukkit.ChatColor;
  import org.bukkit.Statistic;
  import org.bukkit.entity.Entity;
  import org.bukkit.entity.Player;
  import org.bukkit.event.EventHandler;
  import org.bukkit.event.Listener;
  import org.bukkit.event.entity.EntityDeathEvent;
  import org.bukkit.event.entity.PlayerDeathEvent;
  
  public class PlayerListener implements Listener {
  
      KillDeathCounter kdc;
  
  
  
      public PlayerListener(KillDeathCounter plugin) {
          plugin.getServer().getPluginManager().registerEvents(this, plugin);
          kdc = plugin;
      }
  
      @EventHandler
      public void playerKillsPlayer(EntityDeathEvent e) {
  
  
          Entity deade = e.getEntity();
  
          Entity killer = e.getEntity().getKiller();
  
          if (killer instanceof Player &amp;&amp; deade instanceof Player){
  
  
  
              int kills = kdc.getConfig().getInt("playerkills");
              int deaths = kdc.getConfig().getInt("playerdeaths");
              kdc.getConfig().set("playerkills", kills += 1);
              kdc.getConfig().set("playerdeaths", deaths += 1);
  
  
              killer.sendMessage("You now have " + kills + " kills!");
              deade.sendMessage("You now have " + deaths + " deaths!");
  
          }
  
      }
  }
  </code></pre>
  
  <p>Thanks very much guys! :)</p>