diff options
Diffstat (limited to 'src/net/brysonsteck/PlayerAttributes.java')
-rw-r--r-- | src/net/brysonsteck/PlayerAttributes.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/net/brysonsteck/PlayerAttributes.java b/src/net/brysonsteck/PlayerAttributes.java deleted file mode 100644 index de8edcc..0000000 --- a/src/net/brysonsteck/PlayerAttributes.java +++ /dev/null @@ -1,24 +0,0 @@ -package net.brysonsteck; - -import org.bukkit.ChatColor; -import org.bukkit.entity.Player; -import org.bukkit.event.Listener; -import org.bukkit.event.entity.PlayerDeathEvent; -import org.bukkit.plugin.Plugin; - -public class PlayerAttributes implements Listener { - public Plugin plugin = Resurrection.getPlugin(Resurrection.class); - - public void onDeath(PlayerDeathEvent event) { - Player p = event.getEntity(); - Player k = event.getEntity().getKiller(); - int killcount = plugin.getConfig().getInt("Users." + k.getUniqueId().toString() + ".Kills") ; - int deathcount = plugin.getConfig().getInt("Users." + p.getUniqueId().toString() + ".Deaths") ; - - plugin.getConfig().set("Users." + p.getUniqueId().toString() + ".Deaths", deathcount + 1); - plugin.getConfig().set("Users." + k.getUniqueId().toString() + ".Kills", killcount + 1); - plugin.saveConfig(); - - - } -}
\ No newline at end of file |