@EventHandler(priority = EventPriority.MONITOR)
	public void onEntityDeath(EntityDeathEvent event){
		Entity ent = event.getEntity();
		if(ent instanceof Player){
			Player player = (Player)event.getEntity();
			World world = player.getWorld();
			String worldname = world.getName();
			String playername = player.getName();
			Boolean staff = false;	
			String reason = event.getEventName();
			double x = (int) Math.floor(player.getLocation().getX());
			double y = (int) Math.floor(player.getLocation().getY());
			double z = (int) Math.floor(player.getLocation().getZ());
			if (getConfig.PlayerDeaths()) {
				if (player.hasPermission("PlayerLogger.staff")) {
					staff = true;
				}
				if (getConfig.logFilesEnabled()) {
					filehandler.logPlayerDeath(playername, reason, worldname, x, y, z, staff);
				}
				if (getConfig.MySQLEnabled()) {
					addData.add(playername,"death", "", x, y, z, worldname, staff);
				}}}}